[Issue 13122] std.algorithm.cartesianProduct output type immutability
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 8 06:50:56 PST 2015
https://issues.dlang.org/show_bug.cgi?id=13122
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from bearophile_hugs at eml.cc ---
(In reply to Peter Alexander from comment #4)
> 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?
The current behaviour is is a little strange, but I guess you are right. I
close this down then, as invalid.
--
More information about the Digitalmars-d-bugs
mailing list