in reply to Re^5: Types::DateTime, DateTimeUTC->plus_coercions( Format['ISO8601'] ), output format override question
in thread Types::DateTime, DateTimeUTC->plus_coercions( Format['ISO8601'] ), output format override question
Basically, it's triggered by the outside world setting a value
When you said "it's not set if the attribute is set by a default/builder", I thought you meant this didn't call the trigger:
CowTime->new( timestamp => ... )
I thought of the constructor (called BUILD and BUILDARGS in Moose) when you said "builder", but I now presume you were specifically referring to the builder attribute property.
In any case, Moose has had this behaviour for triggers since they were introduced in 2006, and changing it would break a lot of stuff.
I didn't say anything about changing Moose. I said your code needed to be changed. But that's when I thought passing a value to the constructor didn't call the trigger.
|
|---|