Unicode operators

Walter Bright newshound1 at digitalmars.com
Thu Oct 23 21:34:18 PDT 2008


Thomas Moran wrote:
> Since C++ permits unicode identifiers I actually did some experiments a 
> few months ago to see what the compiler support was like. The conclusion 
> was that only MSVC9 can deal with them, GCC4 and ICC10 (EDG I suppose) 
> both choked. You can actually call a variable "αβγ" in VC9 and the 
> program compiles. There's unfortunately some confusion over whether 
> UTF-8 encoded files should have a BOM - MSVC doesn't parse them properly 
> if they don't, but GCC chokes on the BOM. I think this would have to be 
> either specified or handled flexibly in D front ends.

It already is handled properly in D. Try it out!



More information about the Digitalmars-d mailing list