From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han-Wen Newsgroups: gmane.lisp.guile.devel Subject: Re: gen gc Date: Fri, 19 Jul 2002 11:39:41 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <15671.56925.864831.996455@blauw.xs4all.nl> References: <15669.59575.560391.128570@blauw.xs4all.nl> <871ya2ezjo.fsf@zagadka.ping.de> <15669.63974.973133.308661@blauw.xs4all.nl> <3D36AFBC.1000206@puremagic.com> <15670.44970.137101.467470@meddo.cs.uu.nl> <87r8i0s706.fsf@raven.i.defaultvalue.org> Reply-To: hanwen@cs.uu.nl NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1027071449 7140 127.0.0.1 (19 Jul 2002 09:37:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 19 Jul 2002 09:37:29 +0000 (UTC) Cc: Miroslav Silovic , Marius Vollmer , guile-devel@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17VUCV-0001r3-00 for ; Fri, 19 Jul 2002 11:37:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VUCI-0004nX-00; Fri, 19 Jul 2002 05:37:14 -0400 Original-Received: from smtpzilla3.xs4all.nl ([194.109.127.139]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17VUBw-0004m6-00 for ; Fri, 19 Jul 2002 05:36:53 -0400 Original-Received: from blauw.xs4all.nl (blauw.xs4all.nl [213.84.26.127]) by smtpzilla3.xs4all.nl (8.12.0/8.12.0) with ESMTP id g6J9adKE034067; Fri, 19 Jul 2002 11:36:39 +0200 (CEST) Original-To: Rob Browning In-Reply-To: <87r8i0s706.fsf@raven.i.defaultvalue.org> X-Mailer: VM 7.05 under Emacs 21.2.1 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:826 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:826 rlb@defaultvalue.org writes: > Han-Wen Nienhuys writes: > > > Anyways, the goops code only uses the address for printing, so it > > would safe to return the address. I suggest that the documentation be > > changed to > > > > "Return the address of OBJ as an integer. Note that this > > address may change between runs due to garbage collection." > > Alternately if we really need a unique value, and if it's only used > for printing -- couldn't we just use a good old fashioned integer > counter? What's the point of printing the address of the object if > it's only the transient address of the object, unless perhaps the > value's only intended for debugging? What do you mean by integer counter? You have to store a reference to the object when object-address is first invoked on it; then you might as well store the object in a list and simply mark it conservatively. (and then you have to add support to maintain the list weakly -- argh). The value is only intended for human consumption (i.e. debugging) -- Han-Wen Nienhuys | hanwen@cs.uu.nl | http://www.cs.uu.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel