dchar, wchar, char conversions: what is the best practice?

Kevin Bealer kevinbealer at gmail.com
Sat Feb 3 20:55:22 PST 2007


Anders F Björklund wrote:
> Kevin Bealer wrote:
>>
>> What is the 'best practice' when converting from dchar to char or vice 
>> versa?  And wchar of course.
> 
> http://www.prowiki.org/wiki4d/wiki.cgi?CharsAndStrs
> 
>> I expected this code to do a magic conversion:
>>
>> dchar[] one = "one";
>> char[] one_a = cast(char[]) one;
> 
> No Magic in Phobos, sorry...
> 
> --anders

Thanks -- nice writeup btw.

Kevin


More information about the Digitalmars-d-learn mailing list