On Apr 1, Randal L. Schwartz said:

"Jeff" == Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:

Jeff> sub new { Jeff> my $that = shift; Jeff> my $class = ref($that) || $that; Jeff> my $self = $class->SUPER::new(); Jeff> $self->SUPER::_init();

There's a rule of thumb from smalltalk that if you're using a "super"
call with a method name other than your own, you just broke something.

And you just broke something.

The problem is not here.  The problem is in _init, which also
needs to call SUPER::_init.  And then the rule correctly points
out the solution.  How nice.

Oh, right. April Fool? ;)

--
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to