Contents | Prev | Next | Index
A constant associates an identifier with a constant value.
const_decl ::= const_def const_def ::= identdef = 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. Examples of constant declarations are:
N = 100
limit = 2*N - 1
fullSet = {MIN(SET)..MAX(SET)}
Contents | Prev | Next | Index
Canterbury Oberon-2 for JVM (Last documentation update
Jun 2, 2000)
Copyright © 1998 Mill Hill &
Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to
mhc@webcom.com