Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!husc6!endor!siegel
From: siegel@endor.harvard.edu (Rich Siegel)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Shadow of "shadow" (Think C question)
Message-ID: <2718@husc6.harvard.edu>
Date: 28 Sep 89 13:26:17 GMT
References: <14784@netnews.upenn.edu>
Sender: news@husc6.harvard.edu
Reply-To: siegel@endor.UUCP (Rich Siegel)
Organization: Symantec Language Products Group
Lines: 26

In article <14784@netnews.upenn.edu> hvs@pender (H.V. Sorensen) writes:
>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

	"shadow" is a member of the Style enumeration, declared in QuickDraw.h.
Since you presumably have "use " turned on in your Options, 
the MacHeaders file, including these declarations, is automatically
included at the beginning of each file, hence the conflicting declarations.

R.



~~~~~~~~~~~~~~~
 Rich Siegel
 Staff Software Developer
 Symantec Corporation, Language Products Group
 Internet: siegel@endor.harvard.edu
 UUCP: ..harvard!endor!siegel

"There is no personal problem which cannot be solved by sufficient
application of high explosives."

~~~~~~~~~~~~~~~