evalEmpire / Mite

Mite - A zero dependency, fast loading, Moose-like Perl module
Other
3 stars 1 forks source link

Support BUILD #20

Open schwern opened 10 years ago

schwern commented 10 years ago

Have new support a user written BUILD function.

From Moose::Manual::Construction...

   The interaction between multiple "BUILD" methods in an inheritance
   hierarchy is different from normal Perl methods. You should never call
   "$self->SUPER::BUILD", nor should you ever apply a method modifier to
   "BUILD".

   Moose arranges to have all of the "BUILD" methods in a hierarchy called
   when an object is constructed, from parents to children. This might be
   surprising at first, because it reverses the normal order of method
   inheritance.

   The theory behind this is that "BUILD" methods can only be used for
   increasing specialization of a class's constraints, so it makes sense
   to call the least specific "BUILD" method first. Also, this is how Perl
   6 does it.
tobyink commented 2 years ago

I've moved the Mite issue tracker here.

This is now implemented.