range syntax for C

Michael Meissner uunet!osf.org!meissner
Fri Jan 3 07:12:03 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;
|   }
| 
| ---
| Conor O'Neill, Software Group, INMOS Ltd., UK.
| UK: conorainmos.co.uk		US: conorainmos.com
| "It's state-of-the-art" "But it doesn't work!" "That is the state-of-the-art".
| 



More information about the Numeric-interest mailing list