Why does array loses it internal capacity on length change?

Jack Applegame via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Mar 12 02:18:50 PST 2016


> Why is this happening...?
For safety reasons. Your array can be shared between parts of 
application.
> ...how to avoid it?
https://dlang.org/library/object/assume_safe_append.html




More information about the Digitalmars-d-learn mailing list