[Issue 5016] to!() can not convert from wide characters to char

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 9 13:20:31 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5016



--- Comment #1 from Marcin Kuszczak <aarti at interia.pl> 2011-01-09 13:18:44 PST ---
After rethinking problem it seems that real problem is that char and wchar are
not "real" characters. These two types are just artificial things which cause
more troubles than necessary. The only "true" character is dchar and all other
character types should be depreciated.

In such a case:
string <=> ubyte[] => dchar[]
wstring <=> ushort[] => dchar[]

... and maybe also:
dstring <=> uint[] <=> dchar[]

where "=>" means "can be viewed as"

It would solve cleanly and properly problems with strange and unnecessary
conversions like "dchar -> char"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list