[plt-scheme] Wrapping non-PLT code in modules
In the spirit of the other thread on eval (untested):
(define the-code (read (open-input-file
"your-file.scm")))
(define namespace (make-namespace))
(define module `(module name mzsscheme (provide
oogle boogle) ,the-code))
(paramaterize ((current-namespace namespace))
(eval module))
(namespace-attach-module namespace 'name)
Simple!
Noel
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/