diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-30 16:07:19 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-30 16:34:42 +0200 |
commit | 86d4090cd890b6159f93c455f60c5f3ef56a1d27 (patch) | |
tree | 1a7f94e48973bd1290eb9611a89656edaa3f09a8 /web | |
parent | fc9c40bafa8d9b5538f75c31403e89b122c32ff1 (diff) | |
download | Nim-86d4090cd890b6159f93c455f60c5f3ef56a1d27.tar.gz |
added tuple breakage to the docs
Diffstat (limited to 'web')
-rw-r--r-- | web/news/version_0_15_released.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web/news/version_0_15_released.rst b/web/news/version_0_15_released.rst index c440161c4..b9c9bc50b 100644 --- a/web/news/version_0_15_released.rst +++ b/web/news/version_0_15_released.rst @@ -34,6 +34,23 @@ Changes affecting backwards compatibility Instead use ``untyped`` parameters. - The metatype ``expr`` is deprecated. Use ``untyped`` instead. - The metatype ``stmt`` is deprecated. Use ``typed`` instead. +- The compiler is now more picky when it comes to ``tuple`` types. The + following code used to compile, now it's rejected: + +.. code-block:: nim + + import tables + var rocketaims = initOrderedTable[string, Table[tuple[k: int8, v: int8], int64] ]() + rocketaims["hi"] = {(-1.int8, 0.int8): 0.int64}.toTable() + +Instead be consistent in your tuple usage and use tuple names for tuples +that have tuple name: + +.. code-block:: nim + + import tables + var rocketaims = initOrderedTable[string, Table[tuple[k: int8, v: int8], int64] ]() + rocketaims["hi"] = {(k: -1.int8, v: 0.int8): 0.int64}.toTable() Library Additions |