Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Novice question. Message-ID: <14468@smoke.brl.mil> Date: 15 Nov 90 19:01:13 GMT References: <336@brat.UUCP> <4524@iitmax.IIT.EDU> <27700@mimsy.umd.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 16 In article <27700@mimsy.umd.edu> chris@mimsy.umd.edu (Chris Torek) writes: -In article <4524@iitmax.IIT.EDU> gkt@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.