https://issues.dlang.org/show_bug.cgi?id=13122

Peter Alexander <peter.alexander...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter.alexander...@gmail.co
                   |                            |m

--- Comment #4 from Peter Alexander <peter.alexander...@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/fxkgafwqeeduxkerz...@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?

--

Reply via email to