want to confirm: gc will not free a non-gc-allocated field of a gc-allocated object?

mw mingwu at gmail.com
Mon Jun 6 22:24:45 UTC 2022


On Monday, 6 June 2022 at 22:22:05 UTC, max haughton wrote:
> float[] doesn't contain pointers, so the GC won't do anything 
> to or with it.

does every array have a .ptr attr?

https://dlang.org/spec/arrays.html

Dynamic Array Properties

.ptr	Returns a pointer to the first element of the array.



More information about the Digitalmars-d-learn mailing list