[plt-scheme] embedding & modules problem

From: Dave Griffiths (dave at pawfal.org)
Date: Wed Apr 29 13:05:28 EDT 2009

On Wed, 2009-04-29 at 11:26 -0400, Ryan Culpepper wrote:
> Dave Griffiths wrote:
> > Hi all,
> > 
> > I'm trying to understand how modules work when created inside an
> > embedding application. If I run the adapted 3m example below with:
> > 
> > "(require my-module) (my-func)"
> > 
> > It fails with:
> > 
> > #f::9: my-module: standard-module-name-resolver: collection not found:
> > "my-module" in any of: () in: my-module
> > 
> > Even though the module is defined in the current environment...
> 
> It seems like you should be using this require form instead:
>    (require 'my-module)
> 
> Does that help?

Yes, thanks Ryan. Any reasons why it's different? Is it because the
reader hasn't been run over the code? If so, is there a way to make this
happen?

cheers,

dave




Posted on the users mailing list.