home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14737 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.8 KB

  1. 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
  2. From: sichase@csa1.lbl.gov (SCOTT I CHASE)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: incrementation differences/THINK C 4.0 vs. 5.0
  5. Date: 30 Aug 92 20:49:36 GMT
  6. Organization: Lawrence Berkeley Laboratory - Berkeley, CA, USA
  7. Lines: 25
  8. Distribution: na
  9. Message-ID: <25872@dog.ee.lbl.gov>
  10. References: <D2150035.c21d0r@outpost.SF-Bay.org> <1992Aug27.182157.16567@qualcomm.com> <38188@unix.SRI.COM>
  11. Reply-To: sichase@csa1.lbl.gov
  12. NNTP-Posting-Host: 128.3.254.196
  13. News-Software: VAX/VMS VNEWS 1.3-4   
  14.  
  15. In article <38188@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) writes...
  16. >then it selects the first line and say's "Missing ";" ". It knows where
  17. >the missing ";" should go.  So it should ask me "Missing ';' at the end
  18. >of this line. Should I add one and continue compiling?"
  19. >Is this not a common mistake forgetting the ";"?
  20.  
  21. The VAXC compiler does a number of things like this.  It doesn't ask 
  22. for guidance, but it *does* fix the problem, with a warning: "Semicolon 
  23. added at the end of the previous source line."  It also balances
  24. parentheses by adding or deleting them at the end of a routine, as 
  25. necessary.  Later, why you try to link the module, the linker warns you
  26. that there were warnings during compilation.
  27.  
  28. It doesn't always do the right thing.  But you'd be surprised how many
  29. times it gets it right and saves you one edit-compile-link cycle.
  30.  
  31. -Scott
  32. --------------------
  33. Scott I. Chase            "The question seems to be of such a character
  34. SICHASE@CSA2.LBL.GOV        that if I should come to life after my death
  35.                 and some mathematician were to tell me that it
  36.                 had been definitely settled, I think I would
  37.                 immediately drop dead again."      - Vandiver
  38.