stevan / p5-mop-redux

A(nother) MOP for Perl 5
139 stars 36 forks source link

need to document the difference between `new` and `BUILD` #72

Open doy opened 11 years ago

doy commented 11 years ago

In particular, BUILD is called by new_instance, so it will also be called when you clone an object, but an overridden new method will not. Overriding new should basically only be done to provide a different method signature, any actual behavioral changes should probably go in BUILD.

doy commented 11 years ago

Related to #15.