summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-11-28 23:54:23 +0100
committerAraq <rumpf_a@web.de>2012-11-28 23:54:23 +0100
commit92e10e4b182f4b106db79f4be228e19b2720d043 (patch)
tree479c76d632e0adb8c8552677535654972e36279f /doc
parent0ef08e49e74ca075f3dd7348791a77f00e5b3cab (diff)
downloadNim-92e10e4b182f4b106db79f4be228e19b2720d043.tar.gz
implemented 'import except'
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/manual.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index f6ff576bf..a5bce775b 100755
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -3741,6 +3741,19 @@ This is best illustrated by an example:
     return x + 1
 
 
+Import statement
+~~~~~~~~~~~~~~~~
+
+After the import statement a list of module names can follow or a single
+module name followed by an ``except`` to prevent some symbols to be imported:
+
+.. code-block:: nimrod
+  import strutils except `%`
+
+  # doesn't work then:
+  echo "$1" % "abc"
+
+
 Scope rules
 -----------
 Identifiers are valid from the point of their declaration until the end of