From: Kent Dahl Date: 2002-03-18T22:04:05+09:00 Subject: Re: eval/Module question (clearer) 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? -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )__(stud.techn.; ind. econ & management: computer technology)__( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/