[Issue 5342] std.array does not respect immutable/const string qualifiers using front/back/etc

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 16 02:34:51 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=5342



--- Comment #2 from Peter Alexander <peter.alexander.au at gmail.com> 2014-02-16 02:34:47 PST ---
Also, what's the point of returning a `const dchar` from `front`? `dchar` has
value semantics so the `const` qualifier is meaningless when returned by value.

It would matter if it were returned by ref, but it can't because the dchar does
not refer to anything -- it is a decoding of the first code units in the
string.

I propose we close this as WONTFIX.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list