Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mouse CPAN distribution.

Report information
The Basics
Id: 39108
Status: resolved
Priority: 0/
Queue: Mouse

People
Owner: Nobody in particular
Requestors: jkeenan [...] cpan.org
Cc: schwern [...] pobox.com
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



CC: schwern [...] pobox.com
Subject: t/016-trigger.t: Strange warning re deprecation of HASH-based trigger
Download (untitled) / with headers
text/plain 733b
For research and development purposes, Michael Schwern has included a dependency on Mouse in Test-Simple. I had not previously installed Mouse, so I did so just now. While the install was successful, I was puzzled by this warning in the Mouse test suite. t/016-trigger..................1/21 HASH-based form of trigger is deprecated. Please switch back to using the coderef form of trigger. at /Users/jimk/.cpan/build/Mouse-0.06- lcIKqm/blib/lib/Mouse.pm line 49 HASH-based form of trigger is deprecated. Please switch back to using the coderef form of trigger. at /Users/jimk/.cpan/build/Mouse-0.06-lcIKqm/blib/lib/Mouse.pm line 45 If this is a first-time install, what is there for me to switch back to? thanks. Jim Keenan
Download (untitled) / with headers
text/plain 526b
Hi James, A while back we specced a feature in Moose: "before" and "around" triggers. These would let you run code before a setter, or in place of a setter. We ended up not using the idea, but we had already implemented it in Mouse and released. So I had to do a deprecation cycle. I decided keeping the test (which indeed triggers the deprecation warning when you're installing Mouse) would be sufficient notice that the feature is disappearing. And with the upcoming 0.07 release, it will be gone. :) Thanks! Shawn


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.