[Melbourne-pm] Class::Std vs Object::InsideOut

Jacinta Richardson jarich at perltraining.com.au
Thu May 4 17:48:08 PDT 2006


Gerard . wrote:

> Object::InsideOut

> - couple of tricky things though, you can inherit from non-InsideOut
> cclasses, but that's done by storing a reference to the parent
> object(s), which means you can't inherit from method-only ( i.e. mix-in)
> classes.  Easy to work around, just suprising.

On the other hand, you can't inherit from any non-Class::Std classes at all, as
far as I can tell.  Use of Class::Std seems to impose Class::Std on your entire
hierarchy (if you want parent constructors and deconstructors to be called).  On
the other hand, use of hash based objects tended to do the same thing.

Of course I could be mistaken, there are very few "can't"s in Perl.  ;)

All the best,

	J

-- 
   ("`-''-/").___..--''"`-._          |  Jacinta Richardson         |
    `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
    (_Y_.)'  ._   )  `._ `. ``-..-'   |      +61 3 9354 6001        |
  _..`--'_..-_/  /--'_.' ,'           | contact at perltraining.com.au |
 (il),-''  (li),'  ((!.-'             |   www.perltraining.com.au   |




More information about the Melbourne-pm mailing list