Var And Const

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
   Comments
   Literals
   Var And Const
      Arrays
      Initialization
      Static And Extern
      Dynamic Relocation
   Operators
   Statements And blocks
   Program Flow
   Exception Handling
   Functions
   Predefined Identifiers
Directives
System Library
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
CSS Links
  

There is only one single variable type in CSS: var

A var may hold any number or string. Additionally there may by a const qualification; however you don't write const var in CSS but simply const.

Examples:

var x, y;
const xMax = 80, yMax = 25;

While var's may change contents during program execution,const's cannot be changed after declaration.

var's and const's may be defined anywhere in CSS, as known by C++:

foo()
{
  const x = 7;
  for (var k=1; k < x; k++) {
    var y = k * 3;
    sysLog(y);
  }
}
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>