From: Mathieu Bouchard Date: 2005-03-21T17:12:14+09:00 Subject: Re: Feature or bug ?? On Fri, 18 Mar 2005, Lionel Thiry wrote: > Mmm, I realize I haven't truly looked at this problem from the other > potential points of view. So, "super" is not a method call but a > delegation to another method? This looks strange for me... but I'll > try to adapt. super and super(...) are method calls in the sense that a method of some class will be invoked. super and super(...) are not method calls, in the sense that a true method call will start a method-lookup, whereas super and super(...) will resume one. super(...) is a method call, in the sense that you pass arguments to it. super is not a method call, in the sense that instead the arguments come from the enclosing method call. paragraphs 1 and 2 are due to the nature of super in Ruby/Lisp/Self, which depend on the class of the receiver (and not the class that the caller is in, unlike Perl/Java) paragraphs 3 and 4 are Ruby-specific and so super without args not parens is just a shortcut for passing *all* same arguments, including the block. _____________________________________________________________________ Mathieu Bouchard -=- Montr�al QC Canada -=- http://artengine.ca/matju