[racket] Creating ids from symbols

From: Mark Carter (mcturra2000 at yahoo.co.uk)
Date: Fri Aug 5 10:04:42 EDT 2011

>The `namespace-set-variable-value!' function might work.


It doesn't quite work:

(define foo 42)
(define bar 'foo)
(namespace-set-variable-value! bar 43)
foo ; => 42, but I want it to be 43

I guess it's perfectly possible to work around it by defining a cache as a hash, and then getting an setting hash keys. That would work. But I was hoping to be able to do it transparently.


What would be useful would be the equivalent of Lisp's "set"




Posted on the users mailing list.