Skip Menu |

This queue is for tickets about the MooseX-POE CPAN distribution.

Report information
The Basics
Id: 36997
Status: open
Priority: 0/
Queue: MooseX-POE

Owner: Nobody in particular
Requestors: bdonlan [...]

Bug Information
Severity: Normal
Broken in:
  • 0.07
  • 0.01
  • 0.02
  • 0.03
  • 0.04
  • 0.05
  • 0.06
  • 0.08
  • 0.09
  • 0.1
  • 0.2
  • 0.201
Fixed in: (no value)

Subject: Feature request: Allow roles to apply method modifiers to events
Download (untitled) / with headers
text/plain 353b
It would be very useful if events were methods that could be modified by roles, eg: package TestRole; use MooseX::POE::Role; before testevent => sub { print "Foo!"; }; no MooseX::POE::Role; package TestObject; use MooseX::POE; with 'TestRole'; event testevent => sub { print "Bar!"; }; no MooseX::POE; TestObject->new(); POE::Kernel->run();
Subject: Roles cannot modify events if 'with' statement comes before the event declaration
It seems that moving the 'with' below the 'event' statement fixes things.
Download (untitled) / with headers
text/plain 373b
On Sat Jun 21 22:17:30 2008, BDONLAN wrote: Show quoted text
> It seems that moving the 'with' below the 'event' statement fixes > things.
Yeah that would make sense because the event methods are created *after* the Role composition. I'm not sure how to resolve this in a more traditional manner, but I'll try to take it up with people who know more about Moose's bootstrapping than I do.

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

Please report any issues with to