Perl-Sensitive Sunglasses | |
PerlMonks |
Re (tilly) 2 (try it): Abstract class methodsby tilly (Archbishop) |
on Dec 01, 2000 at 05:48 UTC ( [id://44282]=note: print w/replies, xml ) | Need Help?? |
Please try it and attempt to produce a case of breakage. In my tests it works perfectly. In theory it should work fine as well. If A is an abstract class and B inherits from it then the check that B has implemented the methods does not happen when B calls import on A since A ignores the method call with itself as the class. It only happens when A handles the call to import B into whatever C wanted to use it, at which point B has been compiled and loaded.
In Section
Seekers of Perl Wisdom
|
|