bearophile wrote:
Currently in the D2 GC there is no notion of pinned/unpinned class instances,
but eventually an attribute as @pinned may be added to D3, plus its related
semantics. It adds complexity to the language and it needs to interact with
the GC, so it will get useful as the D GC becomes more modern (with different
zones for newly allocated objects, etc).

There is no need for a pin attribute, the gc can determine if a class needs pinning or not.

Reply via email to