stevan / p5-mop-redux

A(nother) MOP for Perl 5
139 stars 36 forks source link

Write tests for Role composition on meta-level objects #65

Closed stevan closed 11 years ago

stevan commented 11 years ago

I left a comment in a9f9453fc7217e1f7ec249675f93680f5a209cb7 to check to see if we need to not make the conditional Bootstrap specific

stevan commented 11 years ago

But wait, what about roles being applied to Class classes that want to override FINALIZE or new?

doy commented 11 years ago

I think you're misunderstanding. Role application all works fine - new and FINALIZE are just normal methods that need to go through normal method conflict resolution just like any other method. We can't rely on that in the bootstrap though, because you're doing that weird thing with pretending that mop::role is both a role and a class, and this confuses the algorithm, and so we just skip it for things that we know are are going to conflict at that point. We really should revisit that whole concept, but I'm saving that for when we can talk about it not via github issues(:

stevan commented 11 years ago

Nevermind, I am going to chalk to this up to jetlag and other assorted stupidity.