how to write a wchar literal

BCS BCS at pathlink.com
Mon Oct 23 16:57:59 PDT 2006


Hasan Aljudy wrote:
> 
> 
> 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)

I don't think that works (I was dinking with it last night) however 
\u00C5 should work.



More information about the Digitalmars-d-learn mailing list