Novice question.

Doug Gwyn gwyn at smoke.brl.mil
Fri Nov 16 06:01:13 AEST 1990


In article <27700 at mimsy.umd.edu> chris at mimsy.umd.edu (Chris Torek) writes:
-In article <4524 at iitmax.IIT.EDU> gkt at iitmax.IIT.EDU (George Thiruvathukal)
-writes:
->extern int TempCount;
-	... code using TempCount ...
->/* resolution of TempCount in same compilation unit */
->int TempCount = 5;
-ANSI C has made this form illegal, and requires compilers to handle
-this form instead:
-	int TempCount;	/*T*/
-	... code using TempCount ...
-	int TempCount = 5;
-The line marked /*T*/ is called a `tenative definition' in X3.159-1989-ese.

While tentative definitions must be supported, I don't recall anything
that would make the original example not strictly conforming.



More information about the Comp.lang.c mailing list