From: ara.t.howard@... Date: 2006-12-28T05:47:28+09:00 Subject: Re: Using an UnboundMethod instead of an alias to redefine a method On Thu, 28 Dec 2006, Mat Schaffer wrote: > > On Dec 27, 2006, at 2:08 PM, ara.t.howard@noaa.gov wrote: > >> On Thu, 28 Dec 2006, Trans wrote: >> >>> Hmm.... >>> >>> defs.push 'foo' do >>> ... >>> end >>> >>> defs.pop >> >> i like that. anyone else? > > Brain storming: > > - Wouldn't it make more sense to say defs.pop 'foo' ? yes of course. > - If I can say defs.X, then what's defs? Is it an object I can do other > stuff with? list of objects. probably the list of modules > - How about injecting a redefinition somewhere other than the top of the > stack? possible. but painful. you'd have to do tons of method re-shuffling to preserver the concept of 'super'. a bit too hard for my tastes, but i'll let you submit a patch! ;-) > I mean, the basic implementation is plenty cool. Just thought I'd share my > crazy ideas.... always a good thing imho! cheers. -a -- if you find yourself slandering anybody, first imagine that your mouth is filled with excrement. it will break you of the habit quickly enough. - the dalai lama