Path: utzoo!attcan!uunet!ginosko!uakari.primate.wisc.edu!uwm.edu!uwvax!tank!eecae!netnews.upenn.edu!pender!hvs From: hvs@pender (H.V. Sorensen) Newsgroups: comp.sys.mac.programmer Subject: Shadow of "shadow" (Think C question) Summary: Think C question Message-ID: <14784@netnews.upenn.edu> Date: 27 Sep 89 17:49:31 GMT Sender: news@netnews.upenn.edu Reply-To: hvs@pender (H.V. Sorensen) Followup-To: comp.sys.mac.programmer Organization: University of Pennsylvania Lines: 27 I recently got the v. 4 of Think C (TC) and started programming. In one of my programs I had a strange bug, which I found was caused by using the name "shadow" for an integer variable. TC complains about an "illegal re-decleration of variable" or something like that. To reproduce the problem try to compile the program below: #includeint shadow; main() { printf("hello\n"); } I am using a "virgin" copy of TC4 with the ANSI library as only other file in my project. By changing the name to anything but shadow, the program compiles perfectly. Are there reserved words in TC that I am not aware of? If so are there any other "reserved" words I should be aware of? Anybody out there with an explanation? Thanks, Henrik Sorensen ****************************************************************************** * Henrik Sorensen Department of Electrical Enginering * * Internet: hvs@ee.upenn.edu University of Pennsylvania * ****************************************************************************** ****************************************************************************** * Henrik Sorensen Department of Electrical Enginering * * Internet: hvs@ee.upenn.edu University of Pennsylvania * ******************************************************************************