unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
Cc: Miroslav Silovic <miro@puremagic.com>,
	Marius Vollmer <mvo@zagadka.ping.de>,
	guile-devel@gnu.org
Subject: Re: gen gc
Date: Fri, 19 Jul 2002 16:32:42 -0500	[thread overview]
Message-ID: <87znwnieth.fsf@raven.i.defaultvalue.org> (raw)
In-Reply-To: <15672.32634.989025.338177@meddo.cs.uu.nl> (Han-Wen Nienhuys's message of "Fri, 19 Jul 2002 23:07:06 +0200")

Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:

> The point is that the number should be associated with the object, and
> you have to remember that association, since addresses might change
> between any two calls of object-address.
>
> If we don't have to keep an association, then ...  well we could
> return any random number (say, the outcome of rand() ) and the whole
> procedure is pointless.

Apparently I'm misunderstanding you or the issue.

Earlier I thought you posted that object-address's docs say that it's
supposed to return a value that's unique to the object, and I thought
you also said that that the returned value was only ever used for
display purposes (i.e. no one will ever say "give me the object
corresponding to address N").  

If both of those bits are true, then all I was saying was that when
you create an object, you could assign it a unique integer (from a
counter) -- i.e. stick the integer into the object, and object-address
could just look in the object and return that integer whenever called.

Of course if object-address is infrequently used, this may be a
wasteful approach (storage-wise), but if the value isn't supposed to
change across the lifetime of the object (which is what the docs you
posted made it sound like initially, and what I was thinking about
when I responded initially), then it's a better idea than printing the
(transient) address.

Of course if the object-address docs are wrong, then that's a
different story.

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2002-07-19 21:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-17 21:59 gen gc Han-Wen
2002-07-17 22:54 ` Marius Vollmer
2002-07-17 23:12   ` Han-Wen
2002-07-18 12:08     ` Miroslav Silovic
2002-07-18 12:08       ` Han-Wen Nienhuys
2002-07-19  3:59         ` Rob Browning
2002-07-19  9:39           ` Han-Wen
2002-07-19 15:40             ` Rob Browning
2002-07-19 19:07               ` Tom Lord
2002-07-19 21:07               ` Han-Wen Nienhuys
2002-07-19 21:32                 ` Rob Browning [this message]
2002-07-19 22:33                   ` Han-Wen
2002-07-19 23:31                     ` Rob Browning
2002-07-19 22:58         ` Marius Vollmer
2002-07-18 16:00     ` Dirk Herrmann
2002-07-18 16:21       ` Han-Wen Nienhuys
2002-07-19 22:55     ` Marius Vollmer
2002-07-20  8:06       ` Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87znwnieth.fsf@raven.i.defaultvalue.org \
    --to=rlb@defaultvalue.org \
    --cc=guile-devel@gnu.org \
    --cc=miro@puremagic.com \
    --cc=mvo@zagadka.ping.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).