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

Anders F Björklund afb at algonet.se
Sat Feb 3 02:22:03 PST 2007

Kevin Bealer wrote:
> What is the 'best practice' when converting from dchar to char or vice 
> versa?  And wchar of course.


> I expected this code to do a magic conversion:
> dchar[] one = "one";
> char[] one_a = cast(char[]) one;

No Magic in Phobos, sorry...


More information about the Digitalmars-d-learn mailing list