Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gvlf3.gvl.unisys.com!tredysvr!cellar!rogue From: rogue@cellar.UUCP (Rogue Winter) Newsgroups: comp.lang.c Subject: Re: Grouse: What's the point of enum? Message-ID: <746w12w164w@cellar.UUCP> Date: 24 Apr 91 17:51:17 GMT References: <41440@cup.portal.com> Sender: bbs@cellar.UUCP (The Cellar BBS) Organization: The Cellar BBS and public access system Lines: 31 ts@cup.portal.com (Tim W Smith) writes: > Wow! Both Henry Spencer and Chris Torek missed the point of enumerated > types... next thing you know, getting involved in a land war in Asia > will be a good idea. > > Anyway, the real point is to allow lower case names for constants. If > [code deleted, The President's previous statements are inoperable] > people who read the code will be so busy trying to remember what the > heck and 'enum' is that they won't realize you've snuck in lower case > constant names. > > Tim Smith Well, since I'm self-taught and don't have anyone looking over my shoulder at my bad habits, I tend to violate such canons amyhow. I've used all caps to define constants and mixed case to define macros and nobody else has ever had to know the wiser. (oops, now I've just blurted it out) Since the only reason I sould come up with for using enums was as an alternate declaration of constants, I had to consider it useless, since it takes more expressions to use an enum variable than a defined constant. Rogue Winter : "How can you say I only protected people in South rogue@cellar.uucp : Philadelphia? I protected people all over this city; it uunet!cellar!rogue: didn't matter if they were in South Philadelphia or Cellar 215/3369503: Northeast Philadelphia." -- Frank Rizzo, 4/12/91