[plt-scheme] Re: question about "module: initial import not well formed"

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Mar 17 21:02:31 EDT 2008

On Mar 17, David Van Horn wrote:
> Rohan Drape wrote:
> > (module core scheme/base
> >   (provide define lambda ...))
> > 
> > (module x core
> >   ...)
> > 
> > but using x get a "module: no #%module-begin
> > binding in the module's language" error.
> You need to provide (at least) #%app, #%top, #%datum, and 
> #%module-begin, plus whatever else you want.

Actually, I think that only `require' is really needed.  (And
reproviding `#%plain-module-begin' as `#%module-begin'.)  The
resulting language would be useless until you require stuff in,
including the above.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.