[plt-scheme] MrEd program in a separate namespace
At 07 Jun 2003 21:48:00 -0500, Ed Cavazos wrote:
> [ecavazos at odyssey foo]$ mred -z
> MrEd version 204, Copyright (c) 1995-2003 PLT
> > (define *ns* (make-namespace-with-mred))
> > (eval '(read-eval-print-loop) *ns*)
> > (load "foo.scm")
> controller.scm:6:2: compile: bad syntax; function application is not allowed,
> because no #%app syntax transformer is bound in: (syntax-rules () ((make-
> slider-callback/weight variable) (lambda (slider control-event) (set! var...
That's the right approach, but the namespace created by
`make-namespace-with-mred' has nothing in the initial compile-time
environment.
Probably you want
(parameterize ([current-namespace ns])
(namespace-transformer-require 'mzscheme))
before the `eval'.
Matthew