[Issue 13122] std.algorithm.cartesianProduct output type immutability
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jan 2 13:23:52 PST 2015
https://issues.dlang.org/show_bug.cgi?id=13122
Peter Alexander <peter.alexander.au at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |peter.alexander.au at gmail.co
| |m
--- Comment #4 from Peter Alexander <peter.alexander.au at gmail.com> ---
(In reply to bearophile_hugs from comment #3)
> (In reply to hsteoh from comment #1)
> > Hmm. Isn't this expected behaviour?
>
> Probably yes, but I have opened a discussion thread:
> http://forum.dlang.org/thread/fxkgafwqeeduxkerzglo@forum.dlang.org
Don't want to bump the thread.
The reason filtering a string yields dchar instead of immutable(dchar) is
because string.front returns a decoded dchar by value. On the other hand
iterating a dstring returns the dchar by ref, so you see its immutability.
Shall we close this bug?
--
More information about the Digitalmars-d-bugs
mailing list