range syntax for C
t.l.hansen
uunet!pegasus.ATT.COM!hansen
Fri Jan 3 08:23:00 PST 1992
<< How about using a double colon like this 1::10
< Except it might do screwy things if C++ ever wanted to adopt case ranges.
<< This also looks fairly natural in a case statement:
<<
<< switch(x)
<< {
<< case 1::10 : do_this(); break;
<< default : do_that(); break;
<< }
Would it really do screwy things? Because of the maximal munch rule, a new
token "::" would have to be parsed as "::" and not as a ":" followed by
another ":".
Tony Hansen
hansenapegasus.att.com, tonyaattmail.com
att!pegasus!hansen, attmail!tony
More information about the Numeric-interest
mailing list