From f8272eba944a4dae7726251f88fd5f1af2d2d5dd Mon Sep 17 00:00:00 2001 From: Clay Sweetser Date: Fri, 18 Oct 2013 16:28:52 -0400 Subject: [PATCH 1/3] Added instructions on using koch to compile nimrod with GDB support. --- doc/intern.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/intern.txt b/doc/intern.txt index c847972512..7b0592921f 100644 --- a/doc/intern.txt +++ b/doc/intern.txt @@ -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``. From 3f502123ea3685dc5c4ba4544cbda67c84196d13 Mon Sep 17 00:00:00 2001 From: Clay Sweetser Date: Sun, 20 Oct 2013 11:36:19 -0400 Subject: [PATCH 2/3] Added some information on sequences. --- doc/manual.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/manual.txt b/doc/manual.txt index 4351d72325..c63df03040 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -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*. From 4f16e627bad3a09b6434a5c74b08544878cd15d5 Mon Sep 17 00:00:00 2001 From: Varriount Date: Wed, 23 Oct 2013 01:32:13 -0400 Subject: [PATCH 3/3] Changed backslash to forward slash Changed backslash to forward slash (why I used a backslash in the first place, I have no idea). --- doc/intern.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/intern.txt b/doc/intern.txt index 7b0592921f..9d9eb66cc4 100644 --- a/doc/intern.txt +++ b/doc/intern.txt @@ -69,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\references which start +* Start types with a capital ``T``, unless they are pointers/references which start with ``P``.