guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is gentemp or gensym "safe"?


From: Martin Grabmueller
Subject: Re: Is gentemp or gensym "safe"?
Date: Wed, 25 Apr 2001 18:49:31 +0200

> From: Nicolas Neuss <address@hidden>
> Date: 25 Apr 2001 18:15:02 +0200
> 
> Rob Browning <address@hidden> writes:
> 
> > Martin Grabmueller <address@hidden> writes:
> > 
> > > guile> (gensym "foo")   
> > > foo1
> > > guile> (gensym "foo")
> > > foo2
> > > guile> (define foo3 1)
> > > guile> foo3
> > > 1
> > > guile> (gensym "foo") 
> > > foo3

[...]

> I guess, no.  The decisive point with gensyms is that they are not eq?
> to any ordinary symbol.  That means that the name does not matter, but
> only memory address.  Did you tes if they are eq?.

address@hidden (~/cvs/guile/x/guile-1.4.1): guile
guile> (eq? 'foo0 (gensym "foo"))
#t

Regards,
  'martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]