[plt-scheme] The usefullness of module systems

From: Robby Findler (robby at cs.uchicago.edu)
Date: Fri Oct 8 16:07:53 EDT 2004

Have you tried using the module language in DrScheme? When you click
Execute, the repl you get is "inside" the module. Maybe that will help.


At Fri, 8 Oct 2004 14:52:07 -0500, Corey Sweeney wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> Hi.  I currenly use closures instead of modules, and am looking at
> switching to modules.  So far I see the advantages as the "stackable
> macros" thing (of which i currenly have no macros to stack).  The big
> downside that i see, is that it will make development much harder,
> because when i go to probe a variable inside the module i'm
> developing, it'll just say "undefined identifier".  I've tried doing
> (define x 7)
> (provide mod-env)
> (define mod-env (interaction-environment))
> inside the module, then doing 
> (require...)
> (eval `x mod-env)
> at top level, and i still get "undefined identifier".  Is there any
> good way to get a prompt with access to the internal vars?
> My other options that I see are:
> Write it outside the module, and then wrap it in the module after your
> your sure you'll never make any more changes. (i.e. never :)
> Attempt using my "define-global" (call/cc trick) to mask define inside
> the module, dumping all internal vars into the global environment.
> ,  without useing my "define-global" which

Posted on the users mailing list.