Unicode arithmetic at run-time
    Adam D. Ruppe via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sat Sep 20 20:13:19 PDT 2014
    
    
  
On Sunday, 21 September 2014 at 03:00:34 UTC, Charles McAnany 
wrote:
> writefln("%c", '/U0001F0A1'+1); //
The problem here is just that arithmetic converts everything back 
to integers and writefln is a bit picky about types. You can 
print it though by casting it back to dchar:
         writefln("%c", cast(dchar)('\U0001F0A1'+1));
My fonts don't support these chars but it should print out if you 
do that.
    
    
More information about the Digitalmars-d-learn
mailing list