unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Han-Wen <hanwen@cs.uu.nl>
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 11:39:41 +0200	[thread overview]
Message-ID: <15671.56925.864831.996455@blauw.xs4all.nl> (raw)
In-Reply-To: <87r8i0s706.fsf@raven.i.defaultvalue.org>

rlb@defaultvalue.org writes:
> Han-Wen Nienhuys <hanwen@cs.uu.nl> 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


  reply	other threads:[~2002-07-19  9:39 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 [this message]
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
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=15671.56925.864831.996455@blauw.xs4all.nl \
    --to=hanwen@cs.uu.nl \
    --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).