From: Dave Thomas Date: 2001-03-18T14:35:23+09:00 Subject: [ruby-talk:12813] Re: Tk Demo in Windows Ron Jeffries writes: > On Sun, 18 Mar 2001 12:03:24 +0900, Dave Thomas > 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.