Skip to content

Instantly share code, notes, and snippets.

@arnsholt
Created February 23, 2013 21:57
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 arnsholt/5021528 to your computer and use it in GitHub Desktop.
Save arnsholt/5021528 to your computer and use it in GitHub Desktop.
Multisub and native type constant oddness.
my int $x = 4;
my int constant y = 4;
foo($x);
foo(y);
multi sub foo(int $x) { say "int" }
multi sub foo(Str $x) { say "Str" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment