Mail Archives: djgpp/1997/04/25/06:20:03
Brennan "The Rev. Bas" Underwood wrote:
>GCC's extended C does! Just do
>switch (c) {
> case 0 ... 12:
>
> case 47 ... 88:
>}
>
>Note the space between the range endpoints and the ellipses.
But it's non-portable. GCC extensions are not in the the
ANSI or ISO standards, and no other compiler can be expected
to support them. Some of us have to deal with other compilers
(there's no GCC for the Mac, for instance, and I'm informed
that people using several other machines don't use it because
the code generation leads to large executables).
Chris
- Raw text -