bugfixes for the symbol mangling; implements #129
This commit is contained in:
parent
98fd408adc
commit
39235e21f5
5 changed files with 58 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue