diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-02-23 04:52:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 13:52:20 +0100 |
commit | 74a8f23801316cd9e5b7ea072bf0c8c0465b0626 (patch) | |
tree | f7afaaa5e2edc3bb02d88447d1dc9e514cf01e33 /doc/destructors.rst | |
parent | 5d95137ce040edd181e56bc132ce319e59bd1ee4 (diff) | |
download | Nim-74a8f23801316cd9e5b7ea072bf0c8c0465b0626.tar.gz |
document type bound operators (#17063)
* document type bound rountines * address comments * Update doc/manual.rst Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'doc/destructors.rst')
-rw-r--r-- | doc/destructors.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/destructors.rst b/doc/destructors.rst index c3a7e7744..cc483026f 100644 --- a/doc/destructors.rst +++ b/doc/destructors.rst @@ -89,8 +89,9 @@ Lifetime-tracking hooks The memory management for Nim's standard ``string`` and ``seq`` types as well as other standard collections is performed via so-called -"Lifetime-tracking hooks" or "type-bound operators". There are 3 different -hooks for each (generic or concrete) object type ``T`` (``T`` can also be a +"Lifetime-tracking hooks", which are particular `type bound operators <manual.html#procedures-type-bound-operators>`_. + +There are 3 different hooks for each (generic or concrete) object type ``T`` (``T`` can also be a ``distinct`` type) that are called implicitly by the compiler. (Note: The word "hook" here does not imply any kind of dynamic binding |