Setting array length to 0 discards reserved allocation?

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 16 00:42:36 PDT 2014


On Tuesday, 16 September 2014 at 01:32:55 UTC, deadalnix wrote:
> We already are suing slices. We are creating the confusion by
> pretending there is 2 different concepts when there is only one.

IMO, the term "slice" is not necessarily different, but rather, a 
*refinement* of the "dynamic array" term. Without changing any 
formal definition, just use the term slice whenever you can, and 
95% of the ambiguity goes away.


More information about the Digitalmars-d mailing list