commit
7a93a5f18e
1 changed files with 4 additions and 4 deletions
|
|
@ -610,7 +610,7 @@ allow to silently throw away a return value:
|
||||||
discard yes("May I ask a pointless question?")
|
discard yes("May I ask a pointless question?")
|
||||||
|
|
||||||
|
|
||||||
The return value can be ignored implicitely if the called proc/iterator has
|
The return value can be ignored implicitly if the called proc/iterator has
|
||||||
been declared with the ``discardable`` pragma:
|
been declared with the ``discardable`` pragma:
|
||||||
|
|
||||||
.. code-block:: nimrod
|
.. code-block:: nimrod
|
||||||
|
|
@ -1077,7 +1077,7 @@ can also be used to include elements (and ranges of elements):
|
||||||
TCharSet = set[char]
|
TCharSet = set[char]
|
||||||
var
|
var
|
||||||
x: TCharSet
|
x: TCharSet
|
||||||
x = {'a'..'z', '0'..'9'} # This constructs a set that conains the
|
x = {'a'..'z', '0'..'9'} # This constructs a set that contains the
|
||||||
# letters from 'a' to 'z' and the digits
|
# letters from 'a' to 'z' and the digits
|
||||||
# from '0' to '9'
|
# from '0' to '9'
|
||||||
|
|
||||||
|
|
@ -1201,7 +1201,7 @@ to specify a range from zero to the specified index minus one:
|
||||||
Sequences
|
Sequences
|
||||||
---------
|
---------
|
||||||
`Sequences`:idx: are similar to arrays but of dynamic length which may change
|
`Sequences`:idx: are similar to arrays but of dynamic length which may change
|
||||||
during runtime (like strings). Since sequences are resizeable they are always
|
during runtime (like strings). Since sequences are resizable they are always
|
||||||
allocated on the heap and garbage collected.
|
allocated on the heap and garbage collected.
|
||||||
|
|
||||||
Sequences are always indexed with an ``int`` starting at position 0.
|
Sequences are always indexed with an ``int`` starting at position 0.
|
||||||
|
|
@ -1547,7 +1547,7 @@ exported symbols. An alternative that only imports listed symbols is the
|
||||||
|
|
||||||
Include statement
|
Include statement
|
||||||
-----------------
|
-----------------
|
||||||
The `include`:idx: statement does something fundametally different than
|
The `include`:idx: statement does something fundamentally different than
|
||||||
importing a module: it merely includes the contents of a file. The ``include``
|
importing a module: it merely includes the contents of a file. The ``include``
|
||||||
statement is useful to split up a large module into several files:
|
statement is useful to split up a large module into several files:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue