Accessing PIR opcodes directly from NQP (pir::)
- NQP provides a pir:: pseudo-namespace for direct access to PIR opcodes
my $ord := pir::ord('A')
- Signature suffixes allow the operands to be coerced
# "Iss" == pass two strings, returning an int my $offset := pir::index__Iss(':', $str);
- In the near future, we plan to provide a nqp:: pseudo-namespace to abstract away from PIR or the underlying VM
my $elems := nqp::elements(@array);