Re: [racket] Unexpected symbol in namespace-mapped-symbols

2013-12-22 Thread Gustavo Massaccesi
Thanks. Much clear now. I didn’t know about the unreadable symbols. A small example: (namespace-variable-value (string->unreadable-symbol "!!hi.1") #t (lambda () "ERROR") !!ns) Yes, I know that this is a bad idea. Gustavo On Fri, Dec 20, 2013 at 7:32 PM, Matthew Flatt wrote: > The `!!hi.1

Re: [racket] Unexpected symbol in namespace-mapped-symbols

2013-12-20 Thread Matthew Flatt
The `!!hi.1` symbol is an "unreadable" symbol generated by macro expansion (to avoid capturing any other identifier in a source program). You can detect such weird symbols with `symbol-unreadable?`. At Fri, 20 Dec 2013 20:14:30 -0200, Gustavo Massaccesi wrote: > I'm not sure that this is a bug. I

[racket] Unexpected symbol in namespace-mapped-symbols

2013-12-20 Thread Gustavo Massaccesi
I'm not sure that this is a bug. I found this while using define-namespace-anchor. When I run this program I get an unexpected !!hi.1 symbol in the list of namespace-mapped-symbols. (All the variable names begin with !! so they are easy to sort in the list.) The variable !!hi is defined inside a