How to delete dynamic array ?

Guillaume Piolat first.name at spam.org
Wed Mar 17 14:30:26 UTC 2021


On Wednesday, 17 March 2021 at 10:54:10 UTC, jmh530 wrote:
>
> This is one of those things that is not explained well enough.

Yes.
I made this article to clear up that point: 
https://p0nce.github.io/d-idioms/#Slices-.capacity,-the-mysterious-property

"That a slice own or not its memory is purely derived from the 
pointed area."

could perhaps better be said

"A slice is managed by the GC when the memory it points to is in 
GC memory"?



More information about the Digitalmars-d-learn mailing list