A.1.3 SubtypesA.1 TypesA.1.1 Atomic TypesA.1.2 Range Types

A.1.2 Range Types

Synopsis

[E1..E2]

Description

This type takes two expressions E1 and E2 denoting integer values such that the value of E1 is less than or equal the value of E2; the type denotes the domain of all integers greater than or equal E1 and less than or equal E2.

The type gives rise to a type checking condition E1 <= E2.

Pragmatics

This type is essentially equivalent to the subtype

SUBTYPE(LAMBDA(x:INT): E1 <= x AND x <= E2)


Wolfgang Schreiner

A.1.3 SubtypesA.1 TypesA.1.1 Atomic TypesA.1.2 Range Types