On Fri, 07 Sep 2007 00:57:09 +0900, Trans wrote: >> What if you want to reopen _without_ the "around" semantics? Could we >> have these two variations: >> >> class Foo < Foo # <-- This is a type error in 1.8 >> def foo; super; end # AROUND >> end > > Almost an anonymous cut. > >> class Foo >> def foo; super; end # REDEFINE >> end >> >> At least that is a conservative extension. > > The downside here is it's static syntax --making it harder to work > with in dynamic metacode. shouldn't this work as expected in this case? Foo = Class.new(Foo) { def foo; super; end} #AROUND Actually, it already does, but raises a warning :) -- goto 10: http://www.goto10.it blog it: http://riffraff.blogsome.com blog en: http://www.riffraff.info