summary refs log tree commit diff stats
path: root/doc/tut1.txt
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-04-30 23:54:02 +0200
committerAraq <rumpf_a@web.de>2013-04-30 23:54:02 +0200
commit427f84b4ec8e6d7d933b1b8142266aa5fa191a3e (patch)
treeee4c00f4de1490131ba53be0ad41701178b95350 /doc/tut1.txt
parente70cc64e906a0562f1dc6fe64336b04da2c53acd (diff)
downloadNim-427f84b4ec8e6d7d933b1b8142266aa5fa191a3e.tar.gz
tester should work again; documented (;)
Diffstat (limited to 'doc/tut1.txt')
-rw-r--r--doc/tut1.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/tut1.txt b/doc/tut1.txt
index 7c2a35f94..2ca2a8ddd 100644
--- a/doc/tut1.txt
+++ b/doc/tut1.txt
@@ -515,6 +515,13 @@ contain indentation at certain places for better readability:
 As a rule of thumb, indentation within expressions is allowed after operators,
 an open parenthesis and after commas.
 
+With parenthesis and semicolons ``(;)`` you can use statements where only 
+an expression is allowed:
+
+.. code-block:: nimrod
+  # computes fac(4) at compile time:
+  const fac4 = (var x = 1; for i in 1..4: x *= i; x)
+
 
 Procedures
 ==========