This commit is contained in:
Andreas Rumpf
2017-07-09 12:09:25 +02:00
parent 674db58a24
commit 6ba9c2b119

View File

@@ -1492,20 +1492,6 @@ variables! For example:
echo badname
echo badext
Tuple unpacking **only** works in ``var`` or ``let`` blocks. The following code
won't compile:
.. code-block:: nim
import os
var
path = "usr/local/nimc.html"
dir, name, ext = ""
(dir, name, ext) = splitFile(path)
# --> Error: '(dir, name, ext)' cannot be assigned to
Reference and pointer types
---------------------------