Contents | Prev | Next | Index
A constant associates an identifier with a constant value.
const_decl ::= const_def const_def ::= <identifier> = const_expr const_expr ::= expr |
A constant expression is an expression that can be evaluated during compilation by a mere textual scan without actually executing the program. Its operands are constants or standard functions that can be evaluated at compile time.
The standard constant identifier NIL is a zero pointer value. It is compatible with any other pointer type or procedural type.
Examples of constant declarations are:
N = 100
limit = 2*N - 1
fullSet = [0..SIZEOF(BYTE)*8-1]
Contents | Prev | Next | Index
Canterbury Pascal for JVM (Last documentation update
Sep 02, 2004)
Copyright © 1999-2004 J.Neuhoff - mhccorp.com
. All rights reserved.
Please send any comments or corrections to
neuhoff@mhccorp.com