Unicode symbols in the identifiers
Andrey
andr-sar at yandex.ru
Thu Jan 10 23:47:02 PST 2013
> save module as utf8(or any other enconding from list above)
> file, from your error description it is ascii
I'm pretty sure I'm saving it in unicode. I can use all unicode
chars easily in string literals ("x²") and output them to
console. But using them in identifiers leads to compiler error.
Apart from that, try this code:
int в_квадрате(int num) { return num*num; }
writeln(2.в_квадрате);
You get: Error: found 'в_квадрате' when expecting ','
More information about the Digitalmars-d-learn
mailing list