From: David Corbin Date: 2002-03-18T23:28:11+09:00 Subject: Re: eval/Module question (clearer) Maybe it is. I'll have to play around with that.... Kent Dahl wrote: >Chris Morris wrote: > >>Obviously, that still leaves you with your problem ... Ron's solution is one >>way out -- don't know if there's another. >> > >Isn't this what the possibility of explicit binding passing to eval is >for? > > >[kentda@v128a kentda]$ irb >irb(main):001:0> module X >irb(main):002:1> eval("def x;puts 'top.x';end", TOPLEVEL_BINDING ) >irb(main):003:1> end >nil >irb(main):004:0> x >top.x >nil > > >Or am I missing something subtle? >