nqp
nqp copied to clipboard
nqp::getlex could not get a variable as arg.
nqp::getlex() could not get a variable arg:
my $sub-name := '&say';
ok((?nqp::getlex($sub-name) == 1), "&say is global routine");
Following code is ok:
ok((?nqp::getlex('&say') == 1), "&say is global routine");
nqp-moarvm: OUTPUT«ok 1 - &say is global routine»