Bug 12806 – Does std.traits.isArray include associative arrays?

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-26T16:48:00Z
Last change time
2014-07-29T14:17:53Z
Assigned to
nobody
Creator
peter.alexander.au

Comments

Comment #0 by peter.alexander.au — 2014-05-26T16:48:10Z
The documentation for std.traits.isArray is: "Detect whether type T is an array." It is not immediately clear whether this includes associative arrays or not (it doesn't), which has forced me to test it manually more than once. I'd suggest changing the documentation to cast away any doubt: "Detect whether type T is either a static or dynamic array."
Comment #1 by justin — 2014-06-06T16:12:02Z
Comment #2 by peter.alexander.au — 2014-07-29T14:17:53Z
Thanks!