Back Previous Next


Linguist basic package - data

Syntax:

   data {name} {constant} [{constant} ...]

Keyword handler:

   net.eclecity.linguist.basic.keyword.BasicKData.class

Runtime handler(s):

   net.eclecity.linguist.basic.keyword.BasicHVariable.class

Function:

Declares a pre-initialized numeric variable, assigning a set of constant values to it. If there is more than one data item the variable will automatically become an array. Once declared, the variable can be used like any other; it is not read-only. See also string.

Example(s):

   data Numbers 0 1 2 3 4 5 6 7 8 9
   data Squares 0 1 4 9 16 25 36 49 64 81


Back Previous Next