diff options
author | Araq <rumpf_a@web.de> | 2012-09-03 00:55:44 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-03 00:55:44 +0200 |
commit | af7c92c0038763db2ba7d7049d7d18363b15089e (patch) | |
tree | 1849c68021e717adceab0533c5a66a6699b76b6c /doc | |
parent | b56df72a325e4991128d808dc6c9edade3d0f293 (diff) | |
download | Nim-af7c92c0038763db2ba7d7049d7d18363b15089e.tar.gz |
term rewriting macros fully implemented; still buggy
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/manual.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual.txt b/doc/manual.txt index df64649ed..e5814b9d6 100755 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -621,14 +621,14 @@ determined). Assignments from the base type to one of its subrange types A subrange type has the same size as its base type (``int`` in the example). Nimrod requires `interval arithmetic`:idx: for subrange types over a set -of built-in operators that involve constants: ``x mod 3`` is of +of built-in operators that involve constants: ``x %% 3`` is of type ``range[0..2]``. The following built-in operators for integers are affected by this rule: ``-``, ``+``, ``*``, ``min``, ``max``, ``succ``, -``pred``, ``mod``, ``div``, ``and`` (bitwise ``and``). +``pred``, ``mod``, ``div``, ``%%``, ``and`` (bitwise ``and``). Bitwise ``and`` only produces a ``range`` if one of its operands is a constant *x* so that (x+1) is a number of two. -(Bitwise ``and`` is then a ``mod`` operation.) +(Bitwise ``and`` is then a ``%%`` operation.) This means that the following code is accepted: |