Skip to content

Instantly share code, notes, and snippets.

@snarkyboojum
Created February 4, 2011 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snarkyboojum/810690 to your computer and use it in GitHub Desktop.
Save snarkyboojum/810690 to your computer and use it in GitHub Desktop.
use v6;
class A is Num {
multi sub infix:<+>(A $a, A $b) is export(:DEFAULT) { ... }
}
my A $a .= new;
$a + $a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment