From: Nikolai Weibull <now@...>
Date: 2012-06-22T17:01:43+09:00
Subject: [ruby-core:45778] Re: [ruby-trunk - Feature #6609] Toplevel as self extended module

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?