[Issue 23432] document when array capacity is zero and capacity performance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 26 09:56:27 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23432

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dlang.org pull request #3445 "[spec/arrays] Improve capacity docs" was
merged into master:

- 585eb902ccb3dbd772882d9cb6f029d477c5c93f by Nick Treleaven:
  [arrays] Improve capacity docs

  Remove sentence about appending to a static array.
  Add note about static array capacity being for generic code.
  Mention capacity is zero if not pointing to GC (array) memory.
  Extend example and explain it afterwards.
  Explain when array length is reduced, capacity will be zero.
  Mention performance impact of capacity.

  Fix Issue 23432 - document when array capacity is zero and capacity
performance.

https://github.com/dlang/dlang.org/pull/3445

--


More information about the Digitalmars-d-bugs mailing list