Skip Menu |

This queue is for tickets about the Role-Tiny CPAN distribution.

Report information
The Basics
Id: 131312
Status: resolved
Priority: 0/
Queue: Role-Tiny

People
Owner: Nobody in particular
Requestors: violapiratejunky [...] gmail.com
Cc:
AdminCc:

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



Subject: with allow roles that have already been applied
It would be nice if there was a version of with that did not croak if a role has already been applied to an object. Because this doesn't exist, you much first check if an object does a role before applying it if roles may be applied in multiple places.
On Tue Dec 31 13:03:58 2019, srchulo wrote: Show quoted text
> It would be nice if there was a version of with that did not croak if > a role has already been applied to an object. Because this doesn't > exist, you much first check if an object does a role before applying > it if roles may be applied in multiple places.
Role::Tiny does not croak if you apply an already applied role to a class or object. Can you show an example of the failure you are seeing?
On Thu Jan 02 05:19:47 2020, haarg wrote: Show quoted text
> On Tue Dec 31 13:03:58 2019, srchulo wrote:
> > It would be nice if there was a version of with that did not croak if > > a role has already been applied to an object. Because this doesn't > > exist, you much first check if an object does a role before applying > > it if roles may be applied in multiple places.
> > Role::Tiny does not croak if you apply an already applied role to a > class or object. > > Can you show an example of the failure you are seeing?
Sorry for the delayed response. I just tried this again and I didn't get an error. Sorry-- not sure what issue I ran into now... I will close but if I figure out what was happening I'll reopen.