Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . Release Notes - <b>149 new: { }, ||</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 149 NEW: { }, ||
--------------------------------------------------------------------------------

     The { } operator is a new operator used to define literal arrays
     and code blocks:

     1. Literal arrays:  Curly braces ({ }) used to indicate literal
        arrays.  This operator can be used anywhere an array can be
        specified.  For example:

        aArray := { 1, 2, 3, 4 }

        defines a literal array, assigning it to aArray.

     2. Code blocks:  Curly braces are also used to define a code
        block.  A code block consists of list of expressions.  In
        addition, the vertical bars (||) are used to specify an argument
        list to pass to the code block.  For example:

        bBlock := { |a, b| QOUT("The sum is: "), QQOUT(a + b) }

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson