GC/non-GC memory as part of data type?
Nick Treleaven
nick at geany.org
Fri Nov 15 18:23:19 UTC 2019
On Wednesday, 13 November 2019 at 15:25:46 UTC, James Lu wrote:
> We could add @nogc types. That indicates to the implementation
> that the memory held by that type MAY be ignored by the GC and
> that
> that any pointers held in that type MUST NOT be moved by a
> moving
> GC.
But a moving GC would only update a pointer that pointed to GC
allocated memory.
@nogc on a field declaration could be useful.
More information about the Digitalmars-d
mailing list