Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: inheritance turns back and bites

by broquaint (Abbot)
on Mar 01, 2004 at 13:30 UTC ( #332888=note: print w/replies, xml ) Need Help??


in reply to inheritance turns back and bites

  1. The $answer object is using its own method instead of SomeData's method
  2. Use Class::MultiMethods, or less elegantly
    sub add { @_ > 2 && return $_[0]->SUPER::add(@_[1 .. $#_]); ... }
  3. Don't use parameter based dispatch in perl ;)
HTH

_________
broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://332888]
help
Chatterbox?
[choroba]: 3 PM in Vietnam, BTW
Discipulus maybe a wrong impression..
[karlgoethebier]: Discipulus: Workshops are for weenies ;-)
[Discipulus]: here 43C high umidity, tiger mosquitos, violence in the street.. everywhere is vietnam
[karlgoethebier]: OK, i'm socially unacceptable
[karlgoethebier]: Discipulus: Were the hell are you today?
[Discipulus]: ..or suitable for the presidence ;=)
[Discipulus]: at Caput Mundi
[marto]: choroba, have you moved to Vietnam or just there for a while?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-06-27 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (600 votes). Check out past polls.