• Description:
    Static lists are the biggest feature (when comparing with C), that allows You to create/setup Your own lists everywhere You like, not only in definition, where it requires it's own variable, this feature extremely simplifies program structure and speedups it's writing. Lists outside a procedure can contain only values, constants, strings and also other lists. List inside a procedure can contain everything what can return a value or an address.

  • News:
    • From 0.16
      • nearly unlimited static list usage


  • Syntax:
    Each list starts with "[" and stops with "]". If ":" follows, this list will be typed. After ":" character must follow one of PowerD types or name of an OBJECT. If no ":" used, then will be this list typed as PTR TO LONG.

  • Examples of untyped lists:
      [0,1,2,NIL,TRUE,1.2,3.2]
      ['Hello',10,20,'World!',"\n",[1,[2],3]]
    

  • Examples of typed lists:
      [1.2,3.4,5.6,1,2,3]:FLOAT
    
      OBJECT myobj
        count:LONG,
        width:DOUBLE,
        yesstr:PTR TO CHAR,
        nostr:PTR TO CHAR,
        list:PTR TO WORD
    
      [0,0.2,'Yes','No',[-1]:WORD]:myobj
    

    from 0.16 is possible also stuff like:
      [1,[4,5,6]:UW,[10,11,20,21]:item,
       "C","A","U","\0",110,111,120,121,
       [3,4]:UW,[5,6]:UW,[1,2]:item,[2,3]:item,123,234]:object
    
      OBJECT object
        a:UW,
        b:PTR TO UW,
        c:PTR TO item,
        d[4]:UB,
        e[2]:item,
        f[2]:PTR TO UW,
        g[2]:PTR TO item,
        h:item
      
      OBJECT item
        x/y:W