> I've noticed that if it can refer to a module-level immutable variable, 
> `eval` seems to know that it's immutable. So is there any way to define a new 
> variable as immutable in a namespace?
> 

I believe box-immutable isn't what you're looking for, or would be too obvious 
an answer?

(eval '(define y (box-immutable 1)) ns)

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to