Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I just started writing things using the object oriented perl interface, however I sincerely miss prototypes! Is there a way to add prototypes to my object methods, so that I get an appropriate warning if someone use the method with wrong number or types of arguments?
perlobj refers to "Function Templates" in perlref, which speaks a bit about creating local subroutines. Is there something along this way that one would want to use, in order to get object method prototypes? /zrajm P.S. I got quite suprised when I realised that my prototypes where being ignored when calling a method. How come this is so? In reply to Object method prototypes? by zrajm
|
|