From: ara.t.howard@... Date: 2007-02-13T15:28:49+09:00 Subject: Re: "super" bug On Tue, 13 Feb 2007, Larry Edelstein wrote: > Hi all - > > I misused the "super" keyword and I think I should have received an > error, but didn't. > > I tried "super.my_method_name(..)" and got strange results. OK, fine, > I'm supposed to say "super(..)" or just "super". But shouldn't I get a > compilation error or something? Is the behavior of > "super.my_method_name(..)" even defined? sure it is ( the_object_returned = super ).my_method_name( 42 ) 'super' in ruby is not an object - it defers to the method of the same name in the parent class and returns whatever that does. regards. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama