From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.lisp.guile.bugs Subject: bug#18223: Duplicate of issue 14792 Date: Sat, 09 Aug 2014 11:46:42 +0200 Message-ID: <878umy8071.fsf@fencepost.gnu.org> References: <1407505351-26741-1-git-send-email-dak@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407577633 8181 80.91.229.3 (9 Aug 2014 09:47:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2014 09:47:13 +0000 (UTC) To: 18223@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Aug 09 11:47:07 2014 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XG3Ew-0007Et-RF for guile-bugs@m.gmane.org; Sat, 09 Aug 2014 11:47:06 +0200 Original-Received: from localhost ([::1]:55028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3Ew-0002A5-GR for guile-bugs@m.gmane.org; Sat, 09 Aug 2014 05:47:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3Et-0002A0-JK for bug-guile@gnu.org; Sat, 09 Aug 2014 05:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XG3Es-0002vt-Qn for bug-guile@gnu.org; Sat, 09 Aug 2014 05:47:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3Es-0002vp-My for bug-guile@gnu.org; Sat, 09 Aug 2014 05:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XG3Es-00014C-GP for bug-guile@gnu.org; Sat, 09 Aug 2014 05:47:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <1407505351-26741-1-git-send-email-dak@gnu.org> Resent-From: David Kastrup Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 09 Aug 2014 09:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18223 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 18223-submit@debbugs.gnu.org id=B18223.14075776064070 (code B ref 18223); Sat, 09 Aug 2014 09:47:02 +0000 Original-Received: (at 18223) by debbugs.gnu.org; 9 Aug 2014 09:46:46 +0000 Original-Received: from localhost ([127.0.0.1]:36076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XG3Eb-00013Z-Q3 for submit@debbugs.gnu.org; Sat, 09 Aug 2014 05:46:46 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:35440 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XG3EZ-00013O-6E for 18223@debbugs.gnu.org; Sat, 09 Aug 2014 05:46:43 -0400 Original-Received: from localhost ([127.0.0.1]:42747 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3EY-0001SK-Q6 for 18223@debbugs.gnu.org; Sat, 09 Aug 2014 05:46:43 -0400 Original-Received: by lola (Postfix, from userid 1000) id 5616FE0493; Sat, 9 Aug 2014 11:46:42 +0200 (CEST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7527 Archived-At: This is actually a duplicate of issue 14792 which has been ignored for over a year by now. Please see for the reason the provided patch (namely discouraging the use of numbers for object properties) is the only one making sense. Here is the rationale in code: object properties are implemented via key-weak hash tables, and weak hash tables will not work with eqv? as equivalence since key-weakness is related to garbage collection which cannot consider anything but eq?-equivalence. scheme@(guile-user)> (define x (make-weak-key-hash-table)) scheme@(guile-user)> (hashv-set! x 100000000000000000000 #t) $6 = #t scheme@(guile-user)> (gc) scheme@(guile-user)> (hashv-ref x 100000000000000000000) $7 = #f Guile and/or Scheme do not store the equivalence relation in the hashtable itself, and user-definable hash functions may establish arbitrary relations regarding key uniqueness that have no clear relation to the object identity used by garbage collection. -- David Kastrup