https://issues.dlang.org/show_bug.cgi?id=13122
Peter Alexander <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |m --- Comment #4 from Peter Alexander <[email protected]> --- (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/[email protected] 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? --
