diff options
author | Araq <rumpf_a@web.de> | 2011-11-30 19:51:51 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-30 19:51:51 +0100 |
commit | ab5621a62bc670c0d1647df6322f70f26f054e8e (patch) | |
tree | b6f42b73ee1fd9e6ff69dedb2a839af0da9e4332 /doc | |
parent | 7d2466638e5170946e862f0beaddcece93c05fe7 (diff) | |
download | Nim-ab5621a62bc670c0d1647df6322f70f26f054e8e.tar.gz |
bugfix: don't process arguments that are to be passed to the produced exe
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/nimrodc.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/nimrodc.txt b/doc/nimrodc.txt index 5a716fda0..315c21435 100755 --- a/doc/nimrodc.txt +++ b/doc/nimrodc.txt @@ -349,8 +349,7 @@ input management. To start Nimrod in interactive mode use the command ``nimrod i``. To quit use the ``quit()`` command. To determine whether an input line is an incomplete statement to be continued these rules are used: -1. The line ends with ``[-+*/\\<>!\?\|%&$@~,;:=#^]\s*$`` (operator symbol - followed by optional whitespace). +1. The line ends with ``[-+*/\\<>!\?\|%&$@~,;:=#^]\s*$`` (operator symbol followed by optional whitespace). 2. The line starts with a space (indentation). 3. The line is within a triple quoted string literal. However, the detection does not work if the line contains more than one ``"""``. @@ -402,6 +401,12 @@ However it is not efficient to do: .. code-block:: Nimrod var s = varA # assignment has to copy the whole string into a new buffer! +For ``let`` symbols a copy is not always necessary: + +.. code-block:: Nimrod + let s = varA # may only copy a pointer if it safe to do so + + The compiler optimizes string case statements: A hashing scheme is used for them if several different string constants are used. So code like this is reasonably efficient: |