laziness, impatience, and hubris | |
PerlMonks |
Re: Re: (jeffa) Re: My first stab at OO perl...by Anonymous Monk |
on Jul 17, 2002 at 00:02 UTC ( [id://182278]=note: print w/replies, xml ) | Need Help?? |
It is bad because while you can have the constructor work fine if someone is confused about the difference between a class and an instance of the class, you cannot perform the same trick for any other non-trivial methods. See Re (tilly) 2: Paradigm Shift - Dual Use Constructors for more detailed discussion of that point.
In Section
Seekers of Perl Wisdom
|
|