[plt-scheme] compile: bad syntax; function application is not allowed

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Jul 21 08:21:30 EDT 2008

At Sun, 20 Jul 2008 23:32:16 -0700 (PDT), Scott Brown wrote:
> When I try to load one file in another file using PLT Scheme 4 like this
> (load "sicp2.scm") I get the following error:
> 
> "sicp2.scm:1:0: compile: bad syntax; function application is not allowed, 
> because no #%app syntax transformer is bound in"
> 
> How can I fix this?

The code that calls `load' is in a module, right?

See

  http://docs.plt-scheme.org/guide/eval.html#(part._namespaces)

  http://list.cs.brown.edu/pipermail/plt-scheme/2008-July/025652.html
  http://list.cs.brown.edu/pipermail/plt-scheme/2008-July/025704.html


Matthew



Posted on the users mailing list.