DIP 1025--Dynamic Arrays Only Shrink, Never Grow--Community Review Round 1
Dennis
dkorpel at gmail.com
Mon Nov 11 14:56:22 UTC 2019
On Monday, 11 November 2019 at 14:48:54 UTC, IGotD- wrote:
> I need one clarification, this DIP regards slices not arrays?
> So an array is being able to be resized just as before. It's
> just that this will no longer apply for slices?
Maybe this article will help:
https://dlang.org/articles/d-array-article.html#responsibility
> So where is the true dynamic array type in D? It's hidden by
> the runtime, and in fact, has no formal type. Slices are good
> enough, and as it turns out, the runtime is smart enough about
> what you want to do with the data, that you almost never notice
> dynamic arrays are missing as a full-fledged type. In fact,
> most D coders consider the D slice to be the dynamic array type
> -- it's even listed as a dynamic array type in the spec! The
> lack of ownership is very subtle and easy to miss.
More information about the Digitalmars-d
mailing list