develooper Front page | perl.moose | Postings from March 2009

Re: triggers and the single meta-attr object

Thread Previous
Hans Dieter Pearcey
March 29, 2009 18:43
Re: triggers and the single meta-attr object
Message ID:
On Sun, Mar 29, 2009 at 09:43:45AM -0500, Dave Rolsky wrote:
> That's not true. For a long time, immutablized classes have not passed 
> the meta-attr to the trigger (except from the constructor).

ec2e2ee5 is mst's commit (Dec 9 2008) removing the meta-attr argument.

% git blame -M -w lib/Moose/Meta/Method/ ec2e2ee5^ | fgrep '$attr->trigger'
d617b644 (Stevan Little    2006-11-02 21:02:04 +0000 231)     return sprintf('$attr->trigger->(%s, %s, $attr);', $instance, $value);

It worked for two years before mst turned it off, as far as I can tell.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About