summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-15 20:54:42 +0100
committerAraq <rumpf_a@web.de>2014-12-15 20:54:42 +0100
commit7cf36add377f266b2714d63616f818b886eb6703 (patch)
treecd02afe2078b6a0245d13b3f5c54a2829530ad65 /doc
parentb131439a2a9c7a415b79b638da81e14e43bafd0b (diff)
downloadNim-7cf36add377f266b2714d63616f818b886eb6703.tar.gz
fixes #1739
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/modules.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/manual/modules.txt b/doc/manual/modules.txt
index 95a13a560..6ca32fef8 100644
--- a/doc/manual/modules.txt
+++ b/doc/manual/modules.txt
@@ -45,13 +45,19 @@ 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:
+module name followed by an ``except`` list to prevent some symbols to be
+imported:
 
 .. code-block:: nim
-  import strutils except `%`
+  import strutils except `%`, toUpper
 
   # doesn't work then:
-  echo "$1" % "abc"
+  echo "$1" % "abc".toUpper
+
+
+It is not checked that the ``except`` list is really exported from the module.
+This feature allows to compile against an older version of the module that
+lacks does not export these identifiers.
 
 
 Include statement