in reply to Overriding constructor
In addition to the other comments in this thread, also see my "ref($proto) - just say no!", expanded in the last few paragraphs of my column on constructors which eventually caused the ugly parts of perltoot to be corrected in recent perl distributions.my $class = ref($invocant) || $invocant;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Overriding constructor
by xdg (Monsignor) on Aug 12, 2005 at 15:59 UTC |