Sambar Server Documentation
|
CScript Variables |
int high, low, results[20];
Variables can also be initialised when they are declared, this is done by
adding an equals sign and the required value after the declaration.
int high = 250; /* Maximum Temperature */
int low = -40; /* Minimum Temperature */
int results[20]; /* Series of temperature readings */
CScript provides a limited set of types
(Imporant! Not all C types are supported):
int An integer (char, short and long are mapped to this) double A double precision floating point number (real and float are mapped to this) char * An arbitrarily long character array object An opaque object passed to and from an external interface (void * is mapped to this) array An arbitrary collection of types (dynamically grows, range checked)
The rules governing variable names also apply to the names of functions.
break case catch char continue default defined do double exit else float for if int long NULL return short sizeof static switch throw try void while
© 2001 Sambar Technologies. All rights reserved. Terms of Use.