style

Dave Sill dsill at nswc-oas.arpa
Thu Apr 28 08:08:05 AEST 1988


Tom Stockfisch writes:
>In this case you can use
>
>	typedef struct LIST {
>		struct LIST	*link;
>		data_t		data;
>	}	LIST;
>
>since tags and typedefs are in different overload classes.
>This usage is not strange looking if you think of the
>initial "struct LIST" as meaning "BEGIN LIST DECLARATION"
>and the final "LIST;" as "END LIST DECLARATION".

Yuck.  Although legal, taking advantage of separate name spaces
like this is material for Obfucated C Code Contest entries.

This example also comflicts with the popular convention of using
uppercase-only names for macros.

=========
The opinions expressed above are mine.

Trivia Question: What is the origin of `uppercase'?



More information about the Comp.lang.c mailing list