4 ms·
it would conflict with user defined literals which were there before: auto operator""_01(unsigned long long l) { return 0; } int x = 100_01; // x ==
by jcelerier 5y ago
it would conflict with user defined literals which were there before:
auto operator""_01(unsigned long long l) {
return 0;
}
int x = 100_01; // x == 0
so, as always, backward compat :D
(grepping in my ~ I see at least one occurence of `operator "" _0b` and if you allow `_0b` it's going to be hard to justify not allowing `_0123456`).
- WalterBright 5y agoA leading underscore just makes it an identifier. After all, ' has a similar ambiguity - is '0' an integer or a character? We use embedded _ in D with no problems.