[Issue 23967] New: 12.14 Array Properties - capacity description
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 5 05:24:20 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23967
Issue ID: 23967
Summary: 12.14 Array Properties - capacity description
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: minor
Priority: P1
Component: dlang.org
Assignee: nobody at puremagic.com
Reporter: home at valentimex.com
It says: .capacity Returns the number of elements that can be appended to
the array without reallocating.
This is wrong as the number of elements that can be appended without
reallocating is a.capacity - a.length (as described in 12.14.2).
--
More information about the Digitalmars-d-bugs
mailing list