The stupid question is the question not asked | |
PerlMonks |
Re: Object method prototypes?by moritz (Cardinal) |
on Dec 14, 2007 at 00:07 UTC ( [id://656947]=note: print w/replies, xml ) | Need Help?? |
Prototypes on methods are ignored because prototypes essentially change the way perl parses the code.
And since the type of a reference is not known at compile time, the parser has no way to find out if there is a prototype to a method, and if yes, which.
In Section
Seekers of Perl Wisdom
|
|