in reply to Re: Re: Re: Why do you need abstract classes in Perl?
in thread Why do you need abstract classes in Perl?

I think that's close to what I said. The problem is that there's no common "base class" for Perl objects as there is in the Smalltalk image, so you might want a hashref, or you might want an arrayref, or even a coderef. If the SUPER call fails, it's the right thing to have happen. Perhaps I could have put in a ->can and die call, but really, that's all the runtime system is going to do anyway. {grin}

I will continue to argue that your bless is no more correct here than my die. It's really a personal framework choice.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Re: Re: Re: Why do you need abstract classes in Perl?