Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created September 3, 2013 20:36
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 jnthn/6429209 to your computer and use it in GitHub Desktop.
Save jnthn/6429209 to your computer and use it in GitHub Desktop.
C:\consulting\MoarVM>type x.nqp
class Foo {
}
BEGIN {
Foo.WHO<%stuff> := nqp::hash('a', 1, 'b', 2);
}
say(%Foo::stuff<a>);
C:\consulting\MoarVM>nqp x.nqp
1
C:\consulting\MoarVM>nqp --target=pir x.nqp > x.pir
C:\consulting\MoarVM>\consulting\rakudo\install\bin\parrot.exe x.pir
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment