Skip to content

Commit

Permalink
Enable &prefix:<?> to work on foreign objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed May 29, 2010
1 parent ffb9a36 commit c491a18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/operators.pm
Expand Up @@ -22,7 +22,9 @@ our multi infix:<!~~>(Mu $topic, Mu $matcher) {
}

our multi prefix:<?>(Mu $a) {
$a.Bool;
pir::can($a, 'Bool')
?? $a.Bool
!! ( pir::istrue($a) ?? True !! False );
}

our multi prefix:<!>(Mu $a) {
Expand Down

0 comments on commit c491a18

Please sign in to comment.