summary refs log tree commit diff stats
path: root/changelog.md
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-11-07 11:49:36 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-11-07 11:49:36 +0100
commit136dbd3c6a554c3d768bcde2c048223cb39ef38f (patch)
tree2b241e73fa1f270efe060bf6158441485d953c44 /changelog.md
parent617ba1a2094f75b584e188d7a79bfdf9a43ed53d (diff)
downloadNim-136dbd3c6a554c3d768bcde2c048223cb39ef38f.tar.gz
breaking change: countup/'..' only take a simple generic T
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index 7aa52ece2..97ce82cd6 100644
--- a/changelog.md
+++ b/changelog.md
@@ -62,3 +62,14 @@ This now needs to be written as:
 .. code-block:: nim
 
   t[ti] = (if exp_negative: '-' else: '+'); inc(ti)
+
+- To make Nim even more robust the system iterators ``..`` and ``countup``
+  now only accept a single generic type ``T``. This means the following code
+  doesn't die with an "out of range" error anymore:
+
+.. code-block:: nim
+
+  var b = 5.Natural
+  var a = -5
+  for i in a..b:
+    echo i