On Fri, Sep 29, 2006 at 12:35:43AM -0700, Trey Harris wrote:
: If you define a BUILD in a role, will it be called when an object of a 
: class that does the role is instantiated, as part of the .new BUILD walk?

Yes.  That is mentioned in A12, even if S12 didn't make it explicit.
At least S12:531 implies that roles have BUILD submethods, and the previous
paragraph indicates that BUILDALL calls all appropriate BUILD methods.
What A12 makes clear that S12 doesn't is that if you write your own BUILD
submethod in your class, it doesn't need to worry about the roles'
BUILDs.  Those are called automatically anyway.


Reply via email to