*char conversion compiler error? | Was: Re: To Walter, about char[] initialization by FF | CHar
Bruno Medeiros
brunodomedeirosATgmail at SPAM.com
Sun Jul 30 08:56:50 PDT 2006
Unknown W. Brackets wrote:
>
> char c = '蝿';
>
>
> Because that would have failed. A char cannot hold such a character,
> which has a code point outside the range 0 - 127. You would either need
> to use an array of chars, or etc.
Which, speaking of which, shouldn't that be a compile time error? The
compiler allows all kinds of *char mingling:
dchar dc = '蝿';
char sc = dc; // :-(
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d
mailing list