Path: utzoo!attcan!uunet!sdrc!diwarner From: diwarner@sdrc.UUCP (Mark_Warner) Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo C 2.0 and EMS Summary: TC 2.0 Confused Message-ID: <505@sdrc.UUCP> Date: 19 Jan 89 13:10:02 GMT References: <6957@june.cs.washington.edu> <598@dms.UUCP> Organization: Structural Dynamics Research Corp., Cincinnati Lines: 39 In article <598@dms.UUCP>, morris@dms.UUCP (Jim Morris) writes: > From article <6957@june.cs.washington.edu>, by robertb@june.cs.washington.edu (Robert Bedichek): > stuff deleted > > The compiler doesn't always issue an error if you use, but forget to declare > a local variable. Of course the code doesn't work properly, and it is usually > a bitch to find the problem as you expect the compiler to barf on an error > like that!! > I wish that when people start FLAMING a product that they show some proof to what they are saying. I mean if you find something that you think is a bug then post it and let the net take a look also. I tried what you said above and the compiler gave me an error every time. I tried the following: main() { int i,j; i = 10; j = 11; { int k; k = 10; printf("%d %d %d\n",i,j,k); <==== i,j are consider global, k local } printf ("%d\n",k); <==== produces error (k not defined) } Please post the example that doesn't work. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Mark Warner | UUCP: uunet!sdrc!diwarner SDRC | Milford Ohio | This space is for rent. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=