[plt-scheme] eval and define
From: nik gaffney (nik at fo.am)
Date: Thu Dec 28 12:57:53 EST 2006 |
|
> The reason is that gensym creates uninterned symbol, , i.e., a
> symbol that is not eq?, eqv?, or equal? to any other symbol,
> although it may print the same as another symbol.
>
> So nik, if you really want common lisp style in this example,
> please use
>
> (define fcn (string->symbol (symbol->string (gensym "p-"))))
thanks. the main reason for the common lisp style, was that i knew it worked,
so if there is a more idiomatic way to do this in scheme, id be happy to learn
about it.
nik