fix merge conflict
This commit is contained in:
commit
4389409e26
65 changed files with 2187 additions and 917 deletions
|
|
@ -1270,10 +1270,10 @@ AST:
|
|||
nnkIdent("float32"),
|
||||
nnkEmpty()
|
||||
)
|
||||
nnkPragma(nnkIdent("inline")),
|
||||
nnkEmpty(), # reserved slot for future use
|
||||
nnkStmtList(nnkDiscardStmt(nnkEmpty())) # the meat of the proc
|
||||
)
|
||||
),
|
||||
nnkPragma(nnkIdent("inline")),
|
||||
nnkEmpty(), # reserved slot for future use
|
||||
nnkStmtList(nnkDiscardStmt(nnkEmpty())) # the meat of the proc
|
||||
)
|
||||
|
||||
There is another consideration. Nim has flexible type identification for
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ Options:
|
|||
-p, --path:PATH add path to search paths
|
||||
-d, --define:SYMBOL(:VAL)
|
||||
define a conditional symbol
|
||||
(Optionally: Define the value for that symbol)
|
||||
(Optionally: Define the value for that symbol,
|
||||
see: "compile time define pragmas")
|
||||
-u, --undef:SYMBOL undefine a conditional symbol
|
||||
-f, --forceBuild force rebuilding of all modules
|
||||
--stackTrace:on|off turn stack tracing on|off
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ the exact spelling of an identifier. The exception with respect to the first
|
|||
letter allows common code like ``var foo: Foo`` to be parsed unambiguously.
|
||||
|
||||
Historically, Nim was a fully `style-insensitive`:idx: language. This meant that
|
||||
it was not case-sensitive and underscores were ignored and there was no even a
|
||||
it was not case-sensitive and underscores were ignored and there was not even a
|
||||
distinction between ``foo`` and ``Foo``.
|
||||
|
||||
|
||||
|
|
|
|||
12
doc/nimc.rst
12
doc/nimc.rst
|
|
@ -232,12 +232,12 @@ Cross compilation for Nintendo Switch
|
|||
=====================================
|
||||
|
||||
Simply add --os:nintendoswitch
|
||||
to your usual ``nim c`` or ``nim cpp`` command and set the ``SWITCH_LIBS``
|
||||
and ``SWITCH_INCLUDES`` environment variables to something like:
|
||||
to your usual ``nim c`` or ``nim cpp`` command and set the ``passC``
|
||||
and ``passL`` command line switches to something like:
|
||||
|
||||
.. code-block:: console
|
||||
export SWITCH_INCLUDES="-I$DEVKITPRO/libnx/include"
|
||||
export SWITCH_LIBS="-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx"
|
||||
nim c ... --passC="-I$DEVKITPRO/libnx/include" ...
|
||||
--passL="-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx"
|
||||
|
||||
or setup a nim.cfg file like so:
|
||||
|
||||
|
|
@ -259,10 +259,6 @@ an nro file with the ``elf2nro`` tool in the DevkitPro release. Examples can be
|
|||
`the nim-libnx github repo <https://github.com/jyapayne/nim-libnx.git>`_ or you can use
|
||||
`the switch builder tool <https://github.com/jyapayne/switch-builder.git>`_.
|
||||
|
||||
Environment variables are:
|
||||
- ``SWITCH_LIBS`` for any extra libraries required by your application (``-lLIBNAME`` or ``-LLIBPATH``)
|
||||
- ``SWITCH_INCLUDES`` for any extra include files (``-IINCLUDE_PATH``)
|
||||
|
||||
There are a few things that don't work because the DevkitPro libraries don't support them.
|
||||
They are:
|
||||
|
||||
|
|
|
|||
|
|
@ -891,7 +891,7 @@ important differences:
|
|||
future version of the compiler.)
|
||||
|
||||
However, you can also use a ``closure`` iterator to get a different set of
|
||||
restrictions. See `first class iterators <manual.html#first-class-iterators>`_
|
||||
restrictions. See `first class iterators <manual.html#iterators-and-the-for-statement-first-class-iterators>`_
|
||||
for details. Iterators can have the same name and parameters as a proc, since
|
||||
essentially they have their own namespaces. Therefore it is common practice to
|
||||
wrap iterators in procs of the same name which accumulate the result of the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue