[plt-scheme] gensym & comparison

From: YC (yinso.chen at gmail.com)
Date: Fri Jun 20 18:53:51 EDT 2008

Hi -

Is there a way to compare gensym symbols with a manually created symbol,
short of converting them to strings?  It's okay if not - just want to know
the reason that they cannot be compared?

> (define sym (gensym))
> sym
g30043
> (equal? sym 'g30043)
#f
> (equal? 'g30043 'g30043)
#t

Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080620/b080aed6/attachment.html>

Posted on the users mailing list.