uint and uint64 is Ordinal type since nim 1.0.0 (#15873)

This commit is contained in:
flywind 2020-11-07 15:58:52 +08:00 • committed by GitHub
commit 5828620d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -883,9 +883,7 @@ Ordinal types have the following characteristics:
than the largest value produces a panic or a static error. than the largest value produces a panic or a static error.
Integers, bool, characters, and enumeration types (and subranges of these Integers, bool, characters, and enumeration types (and subranges of these
types) belong to ordinal types. For reasons of simplicity of implementation types) belong to 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. A distinct type is an ordinal type if its base type is an ordinal type.