![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Moose triggers & method modifiersby bobf (Monsignor) |
on Mar 28, 2018 at 20:00 UTC ( #1211944=perlquestion: print w/replies, xml ) | Need Help?? |
bobf has asked for the wisdom of the Perl Monks concerning the following question: I've been learning Moose and I came across unexpected behavior: method modifiers (such as 'after') do not seem to work with attribute triggers. This is an issue because I want a subclass to extend a method that is defined as a trigger in the parent. The issue and one workaround is shown below.
I could not find anything in the Moose docs or online that documents this behavior as a known limitation. I'd be surprised if I were the first one to notice it, so it makes me wonder whether I am trying to do something that is best done some other way. Thoughts? TIA Update: Cross-posted to moose@perl.org
Back to
Seekers of Perl Wisdom
|
|