Exporting (all your "use base" are belong to us)
publiustemp-londonpm at yahoo.com
Fri Oct 12 10:20:07 BST 2007
--- Matt Lawrence <matt.lawrence at virgin.net> wrote:
> > Where's the bug?
> > package Hate;
> > # Hmm, better sort these so they're easy to read ...
> > use base qw(
> > Class::Accessor
> > Class::BlackHole
> > Class::Data::Inheritable
> > Class::Factory
> > );
> I'm guessing that BlackHole has to go last?
Excellent guess, Matt. That's certainly what I thought of when I wrote
Of course, there's also the issue that Class::Accessor and
Class::Factory both provide their own constructor. Hmm, which do I
want? How do I get the other one? Do I need them both? Why should I
have to worry about inheritance ordering?
Oh, yeah, 'cuz everyone thinks inheritance is da bomb.
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
More information about the london.pm