[plt-scheme] Can I create module on the fly?

From: Gregory Woodhouse (gregory.woodhouse at sbcglobal.net)
Date: Thu Jul 17 16:09:47 EDT 2008

(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>

Posted on the users mailing list.