Merge branch 'master' of github.com:Araq/Nimrod
This commit is contained in:
commit
993cdb82b6
25 changed files with 3237 additions and 2222 deletions
|
|
@ -52,6 +52,11 @@ For a release version use::
|
|||
nimrod c koch.nim
|
||||
./koch boot -d:release
|
||||
|
||||
And for a debug version compatible with GDB::
|
||||
|
||||
nimrod c koch.nim
|
||||
./koch boot --debuginfo --linedir:on
|
||||
|
||||
The ``koch`` program is Nimrod's maintenance script. It is a replacement for
|
||||
make and shell scripting with the advantage that it is much more portable.
|
||||
|
||||
|
|
@ -64,7 +69,7 @@ Coding Guidelines
|
|||
* Max line length is 80 characters.
|
||||
* Provide spaces around binary operators if that enhances readability.
|
||||
* Use a space after a colon, but not before it.
|
||||
* Start types with a capital ``T``, unless they are pointers which start
|
||||
* Start types with a capital ``T``, unless they are pointers/references which start
|
||||
with ``P``.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -893,11 +893,12 @@ integers from 0 to ``len(A)-1``. An array expression may be constructed by the
|
|||
array constructor ``[]``.
|
||||
|
||||
`Sequences`:idx: are similar to arrays but of dynamic length which may change
|
||||
during runtime (like strings). A sequence ``S`` is always indexed by integers
|
||||
from 0 to ``len(S)-1`` and its bounds are checked. Sequences can be
|
||||
constructed by the array constructor ``[]`` in conjunction with the array to
|
||||
sequence operator ``@``. Another way to allocate space for a sequence is to
|
||||
call the built-in ``newSeq`` procedure.
|
||||
during runtime (like strings). Sequences are implemented as growable arrays,
|
||||
allocating pieces of memory as items are added. A sequence ``S`` is always
|
||||
indexed by integers from 0 to ``len(S)-1`` and its bounds are checked.
|
||||
Sequences can be constructed by the array constructor ``[]`` in conjunction
|
||||
with the array to sequence operator ``@``. Another way to allocate space for a
|
||||
sequence is to call the built-in ``newSeq`` procedure.
|
||||
|
||||
A sequence may be passed to a parameter that is of type *open array*.
|
||||
|
||||
|
|
@ -4673,9 +4674,10 @@ A proc can be marked with the `noStackFrame`:idx: pragma to tell the compiler
|
|||
it should not generate a stack frame for the proc. There are also no exit
|
||||
statements like ``return result;`` generated and the generated C function is
|
||||
declared as ``__declspec(naked)`` or ``__attribute__((naked))`` (depending on
|
||||
the used C compiler). This is useful for procs that only consist of an
|
||||
assembler statement.
|
||||
the used C compiler).
|
||||
|
||||
**Note**: This pragma should only be used by procs which consist solely of assembler
|
||||
statements.
|
||||
|
||||
error pragma
|
||||
------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue