[Issue 4483] foreach over string or wstring, where element type not specified, does not support unicode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 21 18:21:05 PST 2014


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



--- Comment #4 from Lionello Lunesu <lio+bugzilla at lunesu.com> 2014-01-21 18:20:57 PST ---
The pull request contains some more arguments against option 2:

* different type for "ref" compared to non ref is unprecedented
* won't fix iteration for composed characters
* what if iteration over code point was intended in the first place? Silent
breaking change

I'm personally particularly interested to fix the foreach over a unicode
literal. I guess we could change the type of such a literal and, for example,
pick a type that fits the characters in the literal.

-- 
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