On 09/15/2009 07:56 PM, Ray Dillinger wrote:
> In this case there's a good semantics that achieves what you both want
> anyway. LOAD isn't a library-level or module-level primitive anyway.
> It has almost[1] the same requirements as "#include" in C, as a
> form that requests that the contents of a(nother) file be inserted
> at the call site in the current scope.
Nothing of the sort. #include is processed at compile-time;
load (at least traditionally) is a function that calls
read+eval in a loop.
> Let it be evaluated just as
> it would be if the file were text at the call site in the current
> scope.
That would be nasty - it would require reifying the call-site's
lexical environment and pass that to eval. Not something you
want to require in a standard, and not something Scheme
implementations have done traditionally.
--
--Per Bothner
[email protected] http://per.bothner.com/
_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss