[Issue 22488] New: data should work with const/immutable Array's
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 7 17:47:17 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22488
Issue ID: 22488
Summary: data should work with const/immutable Array's
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: moonlightsentinel at disroot.org
Array.data can only be called on a mutable object even though it simply exposes
the underlying storage. The method should propagate the `constness` to the
returned array instead.
--
More information about the Digitalmars-d-bugs
mailing list