Skip Menu |

This queue is for tickets about the Moo CPAN distribution.

Report information
The Basics
Id: 66647
Status: resolved
Priority: 0/
Queue: Moo

People
Owner: Nobody in particular
Requestors: nomad [...] null.net
Cc:
AdminCc:

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



Subject: Feature Request: Add "with()" to Moo::Role (or Role::Tiny).
Date: Wed, 16 Mar 2011 11:45:07 +1300
To: bug-Moo [...] rt.cpan.org, mst [...] shadowcat.co.uk
From: Mark Lawrence <nomad [...] null.net>
Hi Matt, I would like to be able to compose one role into another. I presume I can call apply_role_to_package() to manually do the composition, but a "with()" syntax that automatically sets the caller as the destination (same as Moo::with) would be nice. By the way, I tend not to bother individual developers directly but none of the Moo documentation mentions a mailing list, or a bug tracker, and there appears to be no response to issues opened on rt.cpan.org. Also by the way, lots of shadowcat hosted projects have a link to a gitweb page, but it is pretty difficult to find your way from there to a git:// address that can be used to clone a project. Regards, Mark. -- Mark Lawrence
On Tue Mar 15 18:45:23 2011, nomad@null.net wrote: Show quoted text
> Hi Matt, > > I would like to be able to compose one role into another. I presume I > can call apply_role_to_package() to manually do the composition, but a > "with()" syntax that automatically sets the caller as the destination > (same as Moo::with) would be nice.
Role::Tiny::With provides that, so far as I can see. Re-open if I'm wrong.