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"?

Reply via email to