Navigation Menu

Skip to content

Commit

Permalink
Fix one of the issues with attribute mix-ins; gets back another test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 10, 2009
1 parent 695ca5c commit b95e792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/metamodel/RoleToInstanceApplier.nqp
Expand Up @@ -33,8 +33,10 @@ method apply($target, @composees) {

# Complete construction of anonymous subclass and then rebless the target
# into it. XXX This bit is a tad Parrot-specific at the moment; need to
# better encapsulate reblessing.
# better encapsulate reblessing. Also we need to make a fake instance of
# the subclass to have Parrot internally form it's various bits.
my $new_class := $how.compose($subclass);
pir::new__PP($how.get_parrotclass($new_class));
pir::rebless_subclass__vPP($target, $how.get_parrotclass($new_class));
}

Expand Down

0 comments on commit b95e792

Please sign in to comment.