* fixes #7167
* spec: distinct types can be ordinal types
* bootstrapping issue
This commit is contained in:
Andreas Rumpf 2019-05-22 11:50:05 +02:00 • committed by GitHub
commit 1e97b420bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 4 deletions

View file

@ -827,7 +827,10 @@ Ordinal types have the following characteristics:
Integers, bool, characters and enumeration types (and subranges of these
types) belong to ordinal types. For reasons of simplicity of implementation
the types ``uint`` and ``uint64`` are not ordinal types.
the types ``uint`` and ``uint64`` are not ordinal types. (This will be changed
in later versions of the language.)
A distinct type is an ordinal type if its base type is an ordinal type.
Pre-defined integer types
@ -1801,6 +1804,8 @@ and its base type. Explicit type conversions from a distinct type to its
base type and vice versa are allowed. See also ``distinctBase`` to get the
reverse operation.
A distinct type is an ordinal type if its base type is an ordinal type.
Modelling currencies
~~~~~~~~~~~~~~~~~~~~