[plt-scheme] embedding & modules problem

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Wed Apr 29 13:26:50 EDT 2009

Dave Griffiths wrote:
> 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?

No, they're just different kinds of module paths. The Guide has a 
section on module paths that describes the differences:



Posted on the users mailing list.