[Larceny-users] finding libraries

Jon Wells jon at bigbang.com.au
Wed Dec 10 14:37:02 EST 2008


On Wed, 2008-12-10 at 10:20 -0500, William D Clinger wrote:
> Jon Wells wrote:
> > Has there ever been any discussion of allowing import clauses to appear
> > anywhere other than the toplevel...
>
> That would be a bad idea for several reasons.  For
> one thing, the scope of the conditional imports
> would be unclear; to drive that point home, consider
> what happens when you import in one branch of the
> conditional but not in the other.  It would then be
> impossible to compile the scope of the conditional
> imports because the compiler wouldn't even know the
> names being imported.  Even if the compiler were
> able to figure that out, you'd have to describe
> some semantics for the case where the sets of
> identifiers imported by the conditional imports
> were different, and I don't think you'd be able
> to come up with a reasonable semantics for that.

Yeah, I know... that's why I made the example so "simple". 
Guess I'll stick with a language which implements (load ...)

jon.





More information about the Larceny-users mailing list