digitalmars.D.learn - how to write a wchar literal
- Frank Benoit (keinfarbton) (7/7) Oct 23 2006 is it possible to write an 'e' literal of type wchar?
- Hasan Aljudy (4/14) Oct 23 2006 I think 'e'w should work.
- BCS (3/22) Oct 23 2006 I don't think that works (I was dinking with it last night) however
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 :)
Oct 23 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)
Oct 23 2006
Hasan Aljudy wrote:Frank Benoit (keinfarbton) wrote:I don't think that works (I was dinking with it last night) however \u00C5 should work.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)
Oct 23 2006