Previous Topic: Named Values

Next Topic: SEQUENCE Type

Constraints

An upper limit can be placed on the number of items that the set can contain by use of the SIZE keyword. For example:

Pokerhand ::= SET SIZE(5) OF Cards

It is also possible to specify a SIZE range but the lower bound is ignored. For example, the following is equivalent to the above:

Pokerhand ::= SET SIZE(2..5) OF Cards