summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-05-22 11:50:05 +0200
committerGitHub <noreply@github.com>2019-05-22 11:50:05 +0200
commit1e97b420bb10af94450582cbf6774cacc45c92f4 (patch)
tree75b10571cf21b7a9f9748ee365e7dd5edb19614d /doc
parent57bc8d73b439d974760937c6866d16afc742a25c (diff)
downloadNim-1e97b420bb10af94450582cbf6774cacc45c92f4.tar.gz
fixes #7167 (#11300)
* fixes #7167
* spec: distinct types can be ordinal types
* bootstrapping issue
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 50fbabd9d..53f900ae3 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -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
 ~~~~~~~~~~~~~~~~~~~~