Wait a second....
If you are talking about compile-time checking a ->method I'm pretty sure that this can't be done in dynamically typed languages like Perl.
Like with prototypes I expect this only to be possible with normal subs. ( without static typing of the $obj it's impossible to tell which ->methods are allowed, normal subs OTOH can be pre-declared.)
And when doing a dynamic check at run-time, using a @slurpy array is just good enough.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^7: Distinguish between missing and undefined arguments with subroutine signatures (methods with signatures?)
by LanX
in thread Distinguish between missing and undefined arguments with subroutine signatures
by jo37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |