home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!ames!agate!dog.ee.lbl.gov!csa1.lbl.gov!sichase
- From: sichase@csa1.lbl.gov (SCOTT I CHASE)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: incrementation differences/THINK C 4.0 vs. 5.0
- Date: 30 Aug 92 20:49:36 GMT
- Organization: Lawrence Berkeley Laboratory - Berkeley, CA, USA
- Lines: 25
- Distribution: na
- Message-ID: <25872@dog.ee.lbl.gov>
- References: <D2150035.c21d0r@outpost.SF-Bay.org> <1992Aug27.182157.16567@qualcomm.com> <38188@unix.SRI.COM>
- Reply-To: sichase@csa1.lbl.gov
- NNTP-Posting-Host: 128.3.254.196
- News-Software: VAX/VMS VNEWS 1.3-4
-
- In article <38188@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) writes...
- >
- >then it selects the first line and say's "Missing ";" ". It knows where
- >the missing ";" should go. So it should ask me "Missing ';' at the end
- >of this line. Should I add one and continue compiling?"
- >
- >Is this not a common mistake forgetting the ";"?
-
- The VAXC compiler does a number of things like this. It doesn't ask
- for guidance, but it *does* fix the problem, with a warning: "Semicolon
- added at the end of the previous source line." It also balances
- parentheses by adding or deleting them at the end of a routine, as
- necessary. Later, why you try to link the module, the linker warns you
- that there were warnings during compilation.
-
- It doesn't always do the right thing. But you'd be surprised how many
- times it gets it right and saves you one edit-compile-link cycle.
-
- -Scott
- --------------------
- Scott I. Chase "The question seems to be of such a character
- SICHASE@CSA2.LBL.GOV that if I should come to life after my death
- and some mathematician were to tell me that it
- had been definitely settled, I think I would
- immediately drop dead again." - Vandiver
-