@int10h @whitequark Also the enum constants have type int whereas often programmers try to use them for things that need to be unsigned.
@int10h @whitequark 6.7.2.2¶4 "The choice of type is implementation-defined"
-
-
- 1 more reply
New conversation -
-
-
@RichFelker@int10h@whitequark Why is it bad? I think there are 2 distinct uses of enums. 1) For constants. The type of enum isn't relevant -
@RichFelker@int10h@whitequark 2) For real enumerated type without conversion to/from integers. The type isn't relevent too. -
@ch3root@int10h@whitequark Because the ABI depends on the choice. For impls where the type depends on range of values it really sucks. -
@ch3root@int10h@whitequark Because adding additional enumeration values can change the ABI of your interface. -
@RichFelker@ch3root@int10h oh god that's even worse. I never considered that. -
@whitequark@ch3root@int10h This is why C requires everything incl tag & set of consts to be identical to yield a "compat type" across TUs.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.