[Issue 14553] The return types of std.array.array for narrow strings conflicts with its documentation
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jun 30 10:52:23 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14553
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hsteoh at quickfur.ath.cx
--- Comment #1 from hsteoh at quickfur.ath.cx ---
The question is, should we change the code to copy the qualifiers to the
returned dchar[], or should we fix the docs to match the code?
I'm not sure why it's important to keep the qualifiers if we're creating a new
array anyway. Why not keep the code as-is and ensure that it's pure, so that
the returned array can be implicitly cast to whatever qualifiers the user
wants?
--
More information about the Digitalmars-d-bugs
mailing list