From: Gavin Sinclair Date: 2004-02-01T21:47:57+09:00 Subject: Re: Constant visibility On Sunday, February 1, 2004, 11:07:11 PM, ts wrote: >>>>>> "G" == Gavin Sinclair writes: G>> To my mind, the way things work (scope-wise) should depend on the G>> value of 'self' and little if not nothing else. > well, another example to see that ruby sometimes use something else than > self > svg% ruby -e 'Array.instance_eval { p self; def a() puts "a"; end }; Array.a' > Array > a > svg% > svg% ruby -e 'Array.module_eval { p self; def a() puts "a"; end }; [].a' > Array > a > svg% Good point. Still the exception rather than the rule, I hope :) Gavin