Path: utzoo!attcan!uunet!crdgw1!sixhub!davidsen From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: Enumerated types... what's the point? Message-ID: <699@sixhub.UUCP> Date: 24 Mar 90 22:46:22 GMT References: <1990Mar22.053148.10351@ncsuvx.ncsu.edu> <1990Mar22.164943.10459@utzoo.uucp> Reply-To: davidsen@sixhub.UUCP (bill davidsen) Organization: *IX Public Access UNIX, Schenectady NY Lines: 24 In article <1990Mar22.164943.10459@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: | Enumerated types were basically a kludge. X3J11 seriously debated leaving | them out entirely. Arguments about not breaking existing code, etc, led | to them being left in, but as a flavor of integer rather than as real live | independent types. That's all they ever were in C. A real kludge! Someone at an X3J11 meeting told me that enums were added to the language by someone because the preprocessor was out of symbol table and it was easier to hack the compiler than to expand the preprocessor to allow more defines. I can't swear that's true, but no one at the table seemed to find the idea shocking, unlikely, or even new. I would really like to see a real enum in C, one of the things I think was really done badly in the name of not breaking existing programs. I was told that enums as I wanted them were "thinking like Pascal," and "not in the spirit of C." Majority rules. -- bill davidsen - davidsen@sixhub.uucp (uunet!crdgw1!sixhub!davidsen) sysop *IX BBS and Public Access UNIX moderator of comp.binaries.ibm.pc and 80386 mailing list "Stupidity, like virtue, is its own reward" -me