stevan/p5-mop — Issue #36: Multiple inheritance vs roles
Author: cpansprout
Created: 2011-12-14 22:18:49+00:00
State: open

I see from the commit history that support for multiple inheritance has been defenestrated. I presume that is because roles are meant to provide everything that multiple inheritance has been used for. But is it possible to create a role that does not have a finite number of methods?

See HTML::DOM::EventTarget, for instance, which I don’t know how to implement as a role.

Is it possible to do that sort of thing with roles? If not, it seems that the mop is more limiting than traditional OO.