ANSI standard and enums

J.S.Schwarz jss at sftri.UUCP
Tue Oct 30 08:28:28 AEST 1984


> So I would add
> 	d. make enum constants be considered exactly like integer
> 	   constants.
> 

This is exactly what the Aug 21, Draft of the ANSI standard
says. 

Section 2.3.4: "An identifier declared as an enumberation constant
has type int." 

Section 5.2.3: "The properties of an object of enum type in an
expression are identical to those of an int."

    Jerry Schwarz
    Bell Labs
    Summit, N.J
    ihnp4!btlunix!jss



More information about the Comp.lang.c mailing list