Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Booleanify ?^, as discussed with Pm

  • Loading branch information...
commit 0dceace6747e86d036a5bbbe7f5a3c4effb61f5e 1 parent e769409
@lizmat lizmat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/core/Bool.pm
View
2  src/core/Bool.pm
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.