From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Comparing hash table objects Date: Wed, 08 Jun 2022 16:41:47 +0800 Message-ID: <871qvz4kdw.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5202"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 08 10:43:53 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyrI8-000141-Lw for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jun 2022 10:43:52 +0200 Original-Received: from localhost ([::1]:36028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyrI7-0005eM-Hk for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jun 2022 04:43:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyrFm-0004G6-3x for emacs-devel@gnu.org; Wed, 08 Jun 2022 04:41:26 -0400 Original-Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:38715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyrFj-00073Y-Ji for emacs-devel@gnu.org; Wed, 08 Jun 2022 04:41:25 -0400 Original-Received: by mail-pg1-x52c.google.com with SMTP id 123so7906957pgb.5 for ; Wed, 08 Jun 2022 01:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=g4KFlWp4GI65uou60XjsMzzPiS31vOwUuFHJlsJzjn4=; b=cDnbtQjh6DY0b9v62DiDX0d+lSiFteyiOtv/vC2Z40+hOsgvQTuwn0gpjCS/P42fhq as/aW2ztNQSZU0x99rwbnnwVh+bMapIx/ZbTX83Uj5+tn/2a+HxYbzGaPW/hoezsN+k1 0wHLhIdAyQCYBXzqe2SxMtdye4VWu4aqpnC5EvyF6gvJuLqujfkLcYt4cGnUVeg70xNU YvrccA8Wfnl2fDjDOwDTJ3KpEUrUhLfRuEv7l4nfl9z+Ym6CvzMRyGcpG5sGCtL63bGA 60/w1juaMl4Z7bC020h/ZOZrRPVcKGtM+Z/zcr5zSGB81KGyAeggOu2ixSDaxHio76oS VP0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=g4KFlWp4GI65uou60XjsMzzPiS31vOwUuFHJlsJzjn4=; b=KWdhA5nodJGvz99nUhE1lILIHbuuGffy1MKEa/pK62cmVe7Yw+zN+k30GtWIKk89bh +bUS2z6bwoFf1tyGNMN1ukNmJiGj5TfoXmuZ9k0BftzFe2Ue8HZ6qJPEu+Go33nEWXn2 UyJENw+FSfrIv53otjNjGjjiVrq17DWv9SXRm5oX6Jv//uVGz+C0QLqrNWNya6R26ZKS UfCSXtCM1cj0+kQHR7hUC7SyGSsSMh89v3faVpFaJTrNrp7kUyVT1h7L8LxWv18iOuz+ QvJb6l6BOp8BnLMJDK1HBWTfQYj9uS2/2GD1v83fVDPOFuY1qG3Xk8f7zxL5rQ3JnqBt Jcdw== X-Gm-Message-State: AOAM532GU6RbZsQU3uUqAcBnqjf0ZACmsxjYrJioYuZSaeiWPa2D1MqE PbQjRMxiAYDH1f++J8VKTqX6i1P05gA= X-Google-Smtp-Source: ABdhPJzZZRD78kKy88hHRTsKyWwmgyrxNQ6K96BfTonnibPxtvFouNtHMx+D8If3MLT+G601AxSLLA== X-Received: by 2002:a63:85c6:0:b0:3fd:187c:bace with SMTP id u189-20020a6385c6000000b003fd187cbacemr23935662pgd.400.1654677670428; Wed, 08 Jun 2022 01:41:10 -0700 (PDT) Original-Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id s5-20020a656445000000b003fcfdc9946dsm11858258pgv.51.2022.06.08.01.41.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:41:09 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:290910 Archived-At: Hello, Is there any way to compare objects containing hash tables for equality? I have a struct that is created like (list 'type (make-hash-table)) With hash table later populated with some key:value pairs. I expect two structs like the above to be comparable via equal: (equal (list 'type (make-hash-table)) (list 'type (make-hash-table))) ;; => t However, running the above code gives nil. Is the above behavior intentional? Best, Ihor