[plt-scheme] Wrapping non-PLT code in modules

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Tue Oct 29 11:04:53 EST 2002

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/


Posted on the users mailing list.