enums
Henry Spencer
henry at utzoo.uucp
Sat Jul 23 03:16:12 AEST 1988
In article <469 at m3.mfci.UUCP> karzes at mfci.UUCP (Tom Karzes) writes:
>While on the subject of enums, here's something that's always bothered me.
>If you define an enum with a long list of values, a natural thing to want
>to do is determine the number of values in the enum...
>Does ANSI C provide a reasonable way to do this?
No. X3J11 C (it's not quite officially ANSI C yet) almost didn't include
enums at all, since they are so obviously a crude patch onto the language.
It does in fact include them, in the simplest and stupidest form possible.
--
Anyone who buys Wisconsin cheese is| Henry Spencer at U of Toronto Zoology
a traitor to mankind. --Pournelle |uunet!mnetor!utzoo! henry @zoo.toronto.edu
More information about the Comp.lang.c
mailing list