Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created October 30, 2010 20:24
Show Gist options
  • Save jnthn/655709 to your computer and use it in GitHub Desktop.
Save jnthn/655709 to your computer and use it in GitHub Desktop.
code
proto wow($x) {
say("in proto");
return { say("in closure"); {*} }
}
multi wow($x) { say($x) }
my $c := wow("in multi");
say("back from proto");
$c();
in proto
back from proto
in closure
in multi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment