From: "ara.t.howard" Date: 2007-08-01T04:21:56+09:00 Subject: Re: redefining methods On Jul 31, 2007, at 12:09 PM, Pit Capitain wrote: > * Syntax: like �tienne, I, too, don't like that it is necessary to > repeat the method name in both the #redefining call and the method > definition. Couldn't you just call #redefining without an argument and > look in the new module which methods have been defined there? indeed you could/would. just playing now. patches welcome! ;-) > > * Implementation: I haven't checked in detail, but I think you could > get problems with the class variable when there's a class hierarchy. yeah - a class instance var would be the way to go - i was just saving on typing for demo.. > > * Implementation: currently, the method chains are only used as a flag > whether to create the "initial" module or not. Do you plan to use it > for other things? Otherwise you don't need an array with all the > intermediate modules. > hmmm - you mean use only the two: the initial and subsequent? i think that would work... i was indeed thinking of being able to call a 'specific super' though... > Btw. nice use of the BEGIN block! i like the idiom, but the error reporting and require semantics stink - it's nice for examples though ;-) cheers. a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama