2 ms·
_100_ is an identifier in D, too. The simple rule is _ can be embedded in a numeric literal, it just cannot start one.
by WalterBright 7y ago
_100_ is an identifier in D, too. The simple rule is _ can be embedded in a numeric literal, it just cannot start one.
- alexhutcheson 7y agoActually I got this wrong - the ambiguity occurs with C++11 user-defined literals, not with variable names. See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2747.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n274...