Changes between Version 7 and Version 8 of NQPDocs
- Timestamp:
- 07/07/10 18:07:30 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NQPDocs
v7 v8 30 30 One can either use the PIR opcodes directly with pir::opcode($args), or one can substitute long sequences of PIR using Q:PIR { ... }. 31 31 32 when invoking a single opcode, you can coerce the argument types with __STUFF, where stuff is a single letter per opcode arg, with the key:32 when invoking a single opcode, you can coerce the argument types, e.g.: 33 33 34 34 {{{ 35 I = int register 36 N = num register 37 n = num register or numeric constant 38 i = int register or integer constant 39 S = string register 40 s = string register or string constant 41 P = pmc register 42 * = anything 43 ~ = string register, string constant, or PMC 44 + = anything numeric 45 v = void 35 my $hash = pir::new__Ps('Hash'); 46 36 }}} 37 38 note the double underscore. For a list of valid coercions, see: {{{perldoc compilers/pct/src/PAST/Compiler.pir}}}'s Signature Flags section.