how to write a wchar literal

Hasan Aljudy hasan.aljudy at
Mon Oct 23 14:24:59 PDT 2006

Frank Benoit (keinfarbton) wrote:
> is it possible to write an 'e' literal of type wchar?
> func( wchar c);
> func( dchar c);
> func( char c);
> ...
> func( cast(wchar) 'e' );
> writing a cast sucks :)

I think 'e'w should work.
I know it works for stringa: "string"w is wchar[] (w suffix for wchar, d 
suffix for dchar, c suffix for char)

More information about the Digitalmars-d-learn mailing list