Re: how to trigger actions on Role use

2009-04-24 Thread Hans Dieter Pearcey
On Thu, Apr 23, 2009 at 03:57:32PM +0100, Mark Morgan wrote: Cheers to both yourself and Steven Little. That looks to do exactly what I was looking for. I didn't like my current implementation, but couldn't find an alternate way of doing same. A parameterized role might still be the wrong

Re: Moose Talks at YAPC::NA

2009-04-24 Thread Chris Prather
On Thu, Apr 23, 2009 at 10:19 PM, Sachin Sebastian sachin.kochupurac...@gmail.com wrote: Wish I could watch those talks. Will it be available at http://yapc.tv/ or some other site? That's up to the YAPC people I suppose. Beg / Please / Pay the organizers :) -Chris

handles can't fulfill requires?

2009-04-24 Thread perl
In the below, the foo() from Bar cannot fulfill the requires of Baz. Anything I'm missing? (I know that there's an easy workaround of an explicit sub foo() { $_[0]-thing()-foo() } in Bar; it's simply not what one would prefer.) package Foo; use Moose::Role; sub foo {}; package Bar; use

Re: handles can't fulfill requires?

2009-04-24 Thread Yuval Kogman
this is a known limitation. another related issue: has foo = ( handles = RoleName, ) __PACKAGE__-new-does(RoleName); # false there are failing TODO tests for this already. If you'd like to fix it you're more than welcome