Changes between Version 7 and Version 8 of NQPDocs

Show
Ignore:
Timestamp:
07/07/10 18:07:30 (4 years ago)
Author:
coke
Comment:

unfortunately, this list also does not mention 'Q'

Legend:

Unmodified
Added
Removed
Modified
  • NQPDocs

    v7 v8  
    3030One can either use the PIR opcodes directly with pir::opcode($args), or one can substitute long sequences of PIR using Q:PIR { ... }. 
    3131 
    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: 
     32when invoking a single opcode, you can coerce the argument types, e.g.: 
    3333 
    3434{{{ 
    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'); 
    4636}}} 
     37 
     38note the double underscore. For a list of valid coercions, see: {{{perldoc compilers/pct/src/PAST/Compiler.pir}}}'s Signature Flags section.