Ron Jeffries <ronjeffries / acm.org> writes:

> On Sun, 18 Mar 2001 12:03:24 +0900, Dave Thomas
> <Dave / PragmaticProgrammer.com> wrote:
> 
> >If you just want to execute the contents of a file as Ruby code, you
> >can just do
> >
> >   load "file.rb"
> >
> >
> >If won't export the local variables out of the file, but then again
> >neither will 'eval'.
> 
> Then what's all that weird eval stuff in the widget demo about?

Historical cruft, I suspect (my guess it's a fairly literal
translation from the original Tk tests). I recoded the eval line as

 load File.join($demo_dir, tag[5..-1]) + ".rb"

and it seems to work fine.


Sorry about all this, chief.