in reply to Re^6: Is there a better way to do this?
in thread Is there a better way to do this?
Yeah, that does the trick. I was misled because when you try to use Moo::Role; with use Moo;, it doesn't report the redefined subs error, but just says Cannot import Moo::Role into a Moo class.
So then it's basically just the same as use Role::Tiny() I guess ... maybe a slightly larger footprint, in fact. In my real application I don't use has() in the children, so can just use Role::Tiny; there, with use Role::Tiny() in the parent to get apply_roles_to_package().
Thanks again.
|
|---|