Re: Removing a role

[email protected] (Chris Prather)
Newsgroups perl.moose
Message-ID <CAEFJ16-VMpNeWr2Ae8YepLuv_WLYBUjcyJi_poWb9amMv_y4SQ@mail.gmail.com>
On Fri, Feb 10, 2012 at 12:27 PM, Ovid <[email protected]> wrote:


> Of course, both Acme::Combat::Chipmunk and Acme::Combat::Normal implement the desired role. With that, you can swap out abilities as needed.

What if Joe is bitten by a Chipmunk *and* a Zombie? You'll need to
carefully design your roles with composition in mind then. This is
what stopped my first go at this problem using an Array trait.

-Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.