Permalink
Browse files

Booleanify ?^, as discussed with Pm

  • Loading branch information...
lizmat committed Jun 7, 2013
1 parent e769409 commit 0dceace6747e86d036a5bbbe7f5a3c4effb61f5e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Bool.pm
View
@@ -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.

0 comments on commit 0dceace

Please sign in to comment.