Contents | Prev | Next | Index
A set type defined as SET OF T comprises all sets of values of its set base type T. This must be a subrange of the basic types (except real types) or of enumeration types, with at most N values, where N is a small constant determined by the implementation. In this compiler N is 256.
set_type ::= SET OF simple_type |
Notice that, unlike other Pascal compilers, it is not possible to define the character set type as follows:
CHARSET = SET OF CHAR
The CHAR type is 2 bytes wide in this compiler because of the UNICODE support for JVM. A character set type for the first 256 characters can be only defined by using a character subrange as the base type:
CHARSET = SET OF CHR(0) .. CHR(255)
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