[plt-scheme] MrEd program in a separate namespace

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Jun 7 23:47:36 EDT 2003

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

Probably you want

 (parameterize ([current-namespace ns])
   (namespace-transformer-require 'mzscheme))

before the `eval'.


Posted on the users mailing list.