Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jnthn

jnthn/wat.p6 Secret

Created July 13, 2017 11:16
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/5e7a5d8ebac1dd9e1b3607d415b46efe to your computer and use it in GitHub Desktop.
Save jnthn/5e7a5d8ebac1dd9e1b3607d415b46efe to your computer and use it in GitHub Desktop.
use nqp;
class Foo {
multi method new(*@args ($p, *@a)) {
self.CREATE
}
}
my int $i = 0;
for ^10000 {
my @a = <foo bar baz quz>;
Foo.new(|@a);
say ++$i;
nqp::force_gc;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment