digitalmars.D.bugs - [Issue 22488] New: data should work with const/immutable Array's
- d-bugmail puremagic.com (17/17) Nov 07 2021 https://issues.dlang.org/show_bug.cgi?id=22488
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 puremagic.com Reporter: moonlightsentinel 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. --
Nov 07 2021