Perl-Sensitive Sunglasses | |
PerlMonks |
rebuilding lazy Moose attributesby jabowery (Beadle) |
on Aug 20, 2013 at 18:10 UTC ( [id://1050219]=perlquestion: print w/replies, xml ) | Need Help?? |
jabowery has asked for the wisdom of the Perl Monks concerning the following question:
A solution offered to the problem of change propagation in lazy Moose attributes was to use lazy_build => 1 in the lazy attribute and then, in the attributes referenced by the builder:
However, this requires maintaining back-references in the source code that could have been created along with the memoized value at build time. Is there a MooseX that does this automatically?
Back to
Seekers of Perl Wisdom
|
|