Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Booleanify ?^, as discussed with Pm
  • Loading branch information
lizmat committed Jun 7, 2013
1 parent e769409 commit 0dceace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Bool.pm
Expand Up @@ -59,7 +59,7 @@ multi infix:<?|>(Mu \a, Mu \b) { a.Bool || b.Bool }

proto infix:<?^>(|) is pure { * }
multi infix:<?^>(Mu $x = Bool::False) { $x.Bool }
multi infix:<?^>(Mu \a, Mu \b) { a.Bool ^^ b.Bool }
multi infix:<?^>(Mu \a, Mu \b) { nqp::p6bool(nqp::xor(a.Bool,b.Bool )) }

# These operators are normally handled as macros in the compiler;
# we define them here for use as arguments to functions.
Expand Down

0 comments on commit 0dceace

Please sign in to comment.