Regarding num literals, mod paths, ident equality.

This commit is contained in:
Oscar Campbell 2015-06-14 18:36:35 +02:00
commit ed73a90bd3
2 changed files with 26 additions and 9 deletions

View file

@ -146,6 +146,14 @@ modules don't need to import a module's dependencies:
var x: MyObject
echo($x)
Note on paths
-----------
In module related statements, if any part of the module name /
path begins with a number, you may have to quote it in double quotes.
In the following example, it would be seen as a literal number '3.0' of type
'float64' if not quoted, if uncertain - quote it:
.. code-block:: nim
import "gfx/3d/somemodule"
Scope rules
-----------