in reply to Re: Abstract class methods
in thread Interfaces in Perl?

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.

  • Comment on Re (tilly) 2 (try it): Abstract class methods

Replies are listed 'Best First'.
Re: Abstract class methods
by Dominus (Parson) on Dec 01, 2000 at 06:01 UTC
    tilly says:
    > In my tests it works perfectly.
    Oh, I see! Yes, that's really clever.