mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
minor documentation cleanups
This commit is contained in:
@@ -329,8 +329,10 @@ The ``when`` statement enables conditional compilation techniques. As
|
||||
a special syntactic extension, the ``when`` construct is also available
|
||||
within ``object`` definitions.
|
||||
|
||||
|
||||
When nimvm statement
|
||||
---------------------
|
||||
--------------------
|
||||
|
||||
``nimvm`` is a special symbol, that may be used as expression of ``when nimvm``
|
||||
statement to differentiate execution path between runtime and compile time.
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ a ``myproject.nims`` file that simply contains Nim code controlling the
|
||||
compilation process.
|
||||
|
||||
The VM cannot deal with ``importc``, the FFI is not available, so there are not
|
||||
many stdlib modules that you can use with Nim's VM. However, the following
|
||||
modules are available:
|
||||
many stdlib modules that you can use with Nim's VM. However, at least the
|
||||
following modules are available:
|
||||
|
||||
* `strutils <strutils.html>`_
|
||||
* `ospaths <ospaths.html>`_
|
||||
|
||||
@@ -89,7 +89,8 @@ News
|
||||
Compiler Additions
|
||||
------------------
|
||||
|
||||
- The compiler now supports a new configuration system based on ``NimScript``.
|
||||
- The compiler now supports a new configuration system based on
|
||||
`NimScript <docs/nims.html>`_.
|
||||
|
||||
|
||||
Language Additions
|
||||
@@ -106,7 +107,7 @@ News
|
||||
is allowed. Note that this doesn't declare ``x`` and ``y`` variables, for
|
||||
this ``let (x, y) == f()`` still needs to be used.
|
||||
- ``when nimvm`` can now be used for compiletime versions of some code
|
||||
sections. See (XXX) for details.
|
||||
sections. Click `here <docs/manual.html#when-nimvm-statement>`_ for details.
|
||||
|
||||
|
||||
Bugfixes
|
||||
|
||||
Reference in New Issue
Block a user