[plt-scheme] modules 4 newbies

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Oct 16 18:04:54 EDT 2008

On Oct 16, Jakub Piotr C?apa wrote:
> Maybe a small note about the whole #lang thing will help you (since 
> you've been reading the old docs):
> #lang scheme
> is equivalent to inserting the file contents inside
> (module "file-name-where-the-lang-was-found" scheme
>    ...
> )
> And this is even how it is implemented. Think of #lang as a syntactic 
> sugar for the old modules.

You can even try it out -- run this program and see what gets printed:

  #lang scheme
  '#lang scheme/gui (define blah "blah")

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


Posted on the users mailing list.