mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
minor update of the manual
This commit is contained in:
@@ -570,7 +570,7 @@ order. The *names* of the fields also have to be identical.
|
||||
|
||||
The assignment operator for tuples copies each component.
|
||||
The default assignment operator for objects copies each component. Overloading
|
||||
of the assignment operator is described in `type-bound-operations-operator`_.
|
||||
of the assignment operator is described in `type-bound-operations-operator`_.
|
||||
|
||||
.. code-block:: nim
|
||||
|
||||
@@ -905,8 +905,8 @@ not compatible to ``pointer`` to prevent the following from compiling:
|
||||
Future directions:
|
||||
|
||||
* Memory regions might become available for ``string`` and ``seq`` too.
|
||||
* Builtin regions like ``private``, ``global`` and ``local`` will
|
||||
prove very useful for the upcoming OpenCL target.
|
||||
* Builtin regions like ``private``, ``global`` and ``local`` might be
|
||||
useful for an OpenCL target.
|
||||
* Builtin "regions" can model ``lent`` and ``unique`` pointers.
|
||||
* An assignment operator can be attached to a region so that proper write
|
||||
barriers can be generated. This would imply that the GC can be implemented
|
||||
|
||||
Reference in New Issue
Block a user