> >       * Digit separators:  int x = 1'000'000;  // don't ask
> 
> Gah.  Breaks notion of a pp-number.  Why on earth not 1_000_000, which
> doesn't?

Because "_" followed by any number of digits is a valid identifier,
so that would have created an ambiguity with C++11 user-defined
literals. For example, "1_000" would be ambiguous between the
number "1000", and the number "1" suffixed with a user-defined 
literal named "_000".

As for pp-numbers, the proposal extends the preprocessor grammar to 
handle the separator.

Botond
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to