------ art_18555_4925134.1154319761250 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/30/06, Mathieu Bouchard <matju / artengine.ca> wrote: > > On Mon, 31 Jul 2006, Matt Todd wrote: > > class Foo > > end > > # why module_eval here? > > Foo.module_eval {|| > > .. > > } > > class_eval is just an alias for module_eval... or the other way around, > who knows. let's say they're aliases for each other. > In JRuby, class_eval is an alias for module_eval...so yeah, that's about the size. For what it's worth, this constant scoping thing does seem to me a good inconsistency to fix. I was hoping it was a bug in C Ruby so we wouldn't have to continue supporting it in JRuby, but I guess we'll work something out for now :) -- Contribute to RubySpec! @ www.headius.com/rubyspec Charles Oliver Nutter @ headius.blogspot.com Ruby User @ ruby.mn JRuby Developer @ www.jruby.org Application Architect @ www.ventera.com ------ art_18555_4925134.1154319761250--