From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b0d68c502c0ae6 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: Printing Enum Variable Re: Linux World Date: 1999/03/04 Message-ID: <7bm1n5$9t0$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 451134951 References: <7bfc2n$jl9@dfw-ixnews5.ix.netcom.com> <7bhh26$r7c$1@remarQ.com> <36DCAC1F.430E2C5E@aasaa.ofe.org> <7bk4v8$kl8$1@remarQ.com> <36DDA761.7B4E8099@aasaa.ofe.org> <7bkrmm$ao1$1@nnrp1.dejanews.com> <36DE0007.5236CEA2@aasaa.ofe.org> X-Http-Proxy: 1.0 x15.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Mar 04 13:27:08 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-03-04T00:00:00+00:00 List-Id: In article <36DE0007.5236CEA2@aasaa.ofe.org>, David Starner wrote: > Well, pulling out an old Pascal textbook, I don't see > anything that Pascal offers enumeration types that C > doesn't. Read the text book more carefully, it is what pascal does NOT allow you to do that is the key to seeing enumerations as a different abstraction. In C, enums are just int's with a special way of defining values, they are not a separate type. The situation is similar to char. I think it is a mistake that C does not have a character type. This of course can be discussed, but no one can argue that C *does* have a character type (calling one of the int types char, and allowing int literals to have the form of characters does NOT make a character type!) -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own