Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created July 11, 2011 20:23
Show Gist options
  • Save jnthn/1076711 to your computer and use it in GitHub Desktop.
Save jnthn/1076711 to your computer and use it in GitHub Desktop.
class RegSub {
has $!parrot_sub is parrot_vtable_handler('invoke');
}
my $y := RegSub.new(:parrot_sub(
sub () { say("ukrajinky su krasne") }));
$y();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment