bugfixes for the symbol mangling; implements #129

This commit is contained in:
Araq 2012-07-19 17:38:52 +02:00
commit 39235e21f5
5 changed files with 58 additions and 21 deletions

View file

@ -1095,6 +1095,18 @@ dereferencing operations for reference types:
new(n)
n.data = 9
# no need to write n[].data; in fact n[].data is highly discouraged!
As a syntactical extension ``object`` types can be anonymous if
declared in a type section via the ``ref object`` or ``ptr object`` notations.
This feature is useful if an object should only gain reference semantics:
.. code-block:: nimrod
type
Node = ref object
le, ri: Node
data: int
To allocate a new traced object, the built-in procedure ``new`` has to be used.
To deal with untraced memory, the procedures ``alloc``, ``dealloc`` and