[plt-scheme] dynamic-require with no "provided" argument

From: Dave Gurnell (d.j.gurnell at gmail.com)
Date: Thu Nov 13 11:13:24 EST 2008

> I think you probably want `(dynamic-require ... #f)', which
> instantiates the module (i.e., runs the run-time part) but doesn't
> bother to visit it (i.e., run the compile-time part).

Ah. I seeeeeeeeee. I misunderstood the docs there. I thought #f was  
something else.

> In your `run-application' variant, did the module body already contain
> a `(run-application)' call? That would explain why it ran twice: once
> when instantiating the module, and again when the `dynamic-require'
> result was called. Not calling `(run-application)' after
> `dynamic-require' is essentially the same as supplying #f to
> `dynamic-require'.

Yes. My email wasn't clear but that's definitely what was happening.


-- Dave

Posted on the users mailing list.