On Fri, Jun 22, 2012 at 3:03 AM, drbrain (Eric Hodel)
<drbrain / segment7.net> wrote:

> It is easy to create a clean-room DSL evaluation context now:
>
> m = Module.new do
>  extend SomeDSL
> end
>
> m.instance_eval File.read 'dsl_file.rb'

Well, load does quite a bit more than File.read.

Am I correct in understanding that what is being discussed could have
been solved in a way that I”Ēve previously proposed, where load”Ēs
optional second argument can instead be a module that should be used
as the top-level namespace instead of the anonymous one you get if
it”Ēs true?