summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-09-26 00:24:06 +0200
committerAraq <rumpf_a@web.de>2011-09-26 00:24:06 +0200
commit14968fba46a0c1128f38859b339c7384f9f96cd4 (patch)
tree5fcd6a68f54c4df629ae0545f34e974b2a8f5907 /doc
parent0f37d0e1f2aeee466b3c6179886963354eaa6222 (diff)
downloadNim-14968fba46a0c1128f38859b339c7384f9f96cd4.tar.gz
bugfix: internal error in evalFieldAccess; parseutils.interpolatedFragments optimized; tstringinterp.nim now works
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/manual.txt7
-rwxr-xr-xdoc/tut1.txt10
2 files changed, 13 insertions, 4 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index 03e763190..c088e7d83 100755
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -3405,9 +3405,9 @@ exception in one thread terminates the whole *process*!
 Taint mode
 ==========
 
-The Nimrod compiler and standard library support a `taint mode`:idx:. 
-Input strings are declared with the `TaintedString`:idx: string type declared
-in the ``system`` module.
+The Nimrod compiler and most parts of the standard library support 
+a `taint mode`:idx:. Input strings are declared with the `TaintedString`:idx: 
+string type declared in the ``system`` module.
 
 If the taint mode is turned on (via the ``--taintMode:on`` command line 
 option) it is a distinct string type which helps to detect input
@@ -3423,4 +3423,3 @@ validation errors:
 If the taint mode is turned off, ``TaintedString`` is simply an alias for
 ``string``.
 
-
diff --git a/doc/tut1.txt b/doc/tut1.txt
index fb4bbd19c..54268b372 100755
--- a/doc/tut1.txt
+++ b/doc/tut1.txt
@@ -583,6 +583,16 @@ allow to silently throw away a return value:
   discard yes("May I ask a pointless question?")
 
 
+The return value can be ignored implicitely if the called proc/iterator has
+been declared with the ``discardable`` pragma: 
+
+.. code-block:: nimrod
+  proc p(x, y: int): int {.discardable.} = 
+    return x + y
+    
+  p(3, 4) # now valid
+
+
 Named arguments
 ---------------