[plt-scheme] Can I create module on the fly?
(Actually, I'd like the module to be something I can read from a file
port at runtime)
My initial attempt was
> (define md (quote
(module m scheme/base
(define x 11))))
> (define ns (module->namespace ....
But here I'm stuck. By itself, md or 'md isn't a legitimate module
path, but I'd like to create a namespace for eval, so I can evaluate
expressions in the module environment.
"The art of asking the right questions in mathematics is more
important than the art of solving them."
--Georg Cantor
http://www.gwoodhouse.com
http://GregWoodhouse.ImageKind.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080717/4572e8b4/attachment.html>