Skip to content

Commit

Permalink
Fix but True / but False.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Feb 14, 2012
1 parent d43594e commit d4d4a21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Perl6/Metamodel/Mixins.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ role Perl6::Metamodel::Mixins {
for @roles { for @roles {
$new_type.HOW.add_role($new_type, $_); $new_type.HOW.add_role($new_type, $_);
} }
$new_type.HOW.set_boolification_mode($new_type, self.get_boolification_mode($obj));
$new_type.HOW.compose($new_type); $new_type.HOW.compose($new_type);
$new_type.HOW.set_boolification_mode($new_type,
pir::exists($new_type.HOW.method_table($new_type), 'Bool') ?? 0 !!
self.get_boolification_mode($obj));
$new_type.HOW.publish_boolification_spec($new_type);


# If the original object was concrete, change its type by calling a # If the original object was concrete, change its type by calling a
# low level op. Otherwise, we just return the new type object # low level op. Otherwise, we just return the new type object
Expand Down

0 comments on commit d4d4a21

Please sign in to comment.