sub Baz::new { ... croak ... if $class->can("foo") != \&Baz::foo; ... }
?
I doubt I would encourage such tactics.
- tye
In reply to Re: checking a method is not subclassed (in new)
by tye
in thread checking a method is not subclassed
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |