Date: Thu, 17 Oct 1996 10:08:09 PDT From: "Marty Leisner" <leisner@sdsp.mc.xerox.com> To: phk@freebsd.org Cc: hackers@freebsd.org Subject: Re: enum considered bad ? Message-ID: <9610171708.AA28362@gnu.sdsp.mc.xerox.com> In-Reply-To: Your message of "Wed, 16 Oct 1996 23:54:30 PDT." <2022.845535270@critter.tfs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 ? > > -- > Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. > http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. > whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. > Future will arrive by its own means, progress not so. You mean instead of #define...? Its an excellent idea...I saw it in a Doug McIlroy Computing Systems article, and he explained it to me. I never saw it documented any (why to use enum's for constants). enum in the normal way is used a lot. -- marty leisner@sdsp.mc.xerox.com Member of the League for Programming Freedom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9610171708.AA28362>