Uses for non-unique names in structures.

William Cattey wdc at mit-eddie.UUCP
Wed Dec 7 04:35:10 AEST 1983


	It is a neat feature all right, but I hope you never
decide to port programs to other C implementations with it 
present.  It is beautiful, and useful, and not portable!  
The big problem I see with it is that it is such a neat feature
that code written with it will get *ugly* when it has to be replaced
with a more portable construct.  My personal opinion is to use
a more portable syntax in the first version and not risk uglification.

	I believe that C compilers for version 7 and earlier
complained about non-unique names for elements in a structure
regardless of type.

	If neither portability nor future uglification matter
then use non-unique element names with depraved abandon.

Yow!  Am I Emily Post yet?  :-)
W. Cattey.
wdc%ccc at mit-mc  (arpa)
...decvax!genrad!mit-eddie!wdc  (uucp)



More information about the Comp.lang.c mailing list