From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miroslav Silovic Newsgroups: gmane.lisp.guile.devel Subject: Re: gen gc Date: Thu, 18 Jul 2002 14:08:28 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <3D36AFBC.1000206@puremagic.com> References: <15669.59575.560391.128570@blauw.xs4all.nl> <871ya2ezjo.fsf@zagadka.ping.de> <15669.63974.973133.308661@blauw.xs4all.nl> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1026993764 21061 127.0.0.1 (18 Jul 2002 12:02:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2002 12:02:44 +0000 (UTC) Cc: 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 17V9zX-0005Ta-00 for ; Thu, 18 Jul 2002 14:02:43 +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 17V9zG-00077m-00; Thu, 18 Jul 2002 08:02:26 -0400 Original-Received: from mail01d.rapidsite.net ([207.158.192.52]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17V9xw-00070o-00 for ; Thu, 18 Jul 2002 08:01:04 -0400 Original-Received: from www.vams.com (207.201.150.210) by mail01d.rapidsite.net (RS ver 1.0.63s) with SMTP id 030731; Thu, 18 Jul 2002 08:00:59 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en Original-To: hanwen@cs.uu.nl X-Loop-Detect: 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:820 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:820 Han-Wen wrote: >mvo@zagadka.ping.de writes: > > >>Han-Wen writes: >> >> >> >>>How is this supposed to portable to GenGC? >>> >>> SCM_DEFINE (scm_object_address, "object-address", 1, 0, 0, >>> (SCM obj), >>> "Return an integer that for the lifetime of @var{obj} is uniquely\n" >>> "returned by this function for @var{obj}") >>> >>>This is used in some of the goops code -- should I retain it? >>> >>> >>It would be cool if you could fake it. It doesn't need to be the real >>memory address of the object, just a unique integer. >> >> > >? > >What if I can't? Memory cells are going to move around. I don't see a >way to generate a unique number without making some kind of table for >objects subjected to object-address. > > Actually it only says it should be unique, not never-changing. In particular, all it needs for eq? to grok it is uniqueness. I guess just returning the address ought to work, no? Miro _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel