Problem with anonymous structs and unions
Eljay Love-Jensen
eljay@adobe.com
Wed Nov 13 09:58:00 GMT 2002
Hi,
>How about naming the structs?
I believe naming the structs isn't the problem. The structs need to be
"instantiated" (so to speak) by being given a variable name. Otherwise
they are just declarative, not definitive.
However, I would argue that the practice of using unions to form synonyms
is, itself, suspect. It looks like, to me, that at one point there was a
(religous?) naming convention war, and unions were used as a
compromise. Do away with the synonyms. (C/C++ unions themselves are often
suspect, in my opinion.)
--Eljay
More information about the Gcc-help
mailing list