Non-English characters in code - "character 0x2212 is not a valid token"
pineapple via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 28 05:24:49 PST 2016
On Thursday, 28 January 2016 at 13:18:55 UTC, pineapple wrote:
> I experimented with using the character 'ħ' in a variable name,
> and wasn't terribly surprised when the compiler didn't like it.
> What did surprise me is that I still got a compile error even
> when the character was in a comment. Is there any way to make
> dmd not get fussy about unicode?
Oh, don't mind me. Turns out the problem was nothing to do with
'ħ', somehow a '-' that wasn't actually a '-' found its way into
my code and was confusing my numeric literals. All is well here.
More information about the Digitalmars-d-learn
mailing list