From owner-freebsd-hackers Thu Oct 17 07:03:44 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA01779 for hackers-outgoing; Thu, 17 Oct 1996 07:03:44 -0700 (PDT) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA01769; Thu, 17 Oct 1996 07:03:32 -0700 (PDT) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id IAA17539; Thu, 17 Oct 1996 08:03:29 -0600 (MDT) Date: Thu, 17 Oct 1996 08:03:29 -0600 (MDT) Message-Id: <199610171403.IAA17539@rocky.mt.sri.com> From: Nate Williams To: phk@freebsd.org Cc: hackers@freebsd.org Subject: Re: enum considered bad ? In-Reply-To: <2022.845535270@critter.tfs.com> References: <2022.845535270@critter.tfs.com> Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I've noticed that "enum" is hardly ever used in C programs, is this > because people consider it a bad idea or because they havn't really > got the swing of it ? I use it all the time for state machines in C, and I find it makes the code easier to understand. It's also a necessary evil in C++ for doing 'hidden' constants. Nate