home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14691 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!wupost!eclnews!swarm.wustl.edu!wilcox
  3. From: wilcox@swarm.wustl.edu (Don Wilcox)
  4. Subject: Re: incrementation differences/THINK C 4.0 vs. 5.0
  5. Message-ID: <1992Aug28.151228.28438@wuecl.wustl.edu>
  6. Sender: usenet@wuecl.wustl.edu (Usenet Administrator)
  7. Nntp-Posting-Host: swarm
  8. Organization: Washington University in St. Louis, MO
  9. References: <D2150035.c21d0r@outpost.SF-Bay.org> <1992Aug27.182157.16567@qualcomm.com> <38188@unix.SRI.COM>
  10. Date: Fri, 28 Aug 1992 15:12:28 GMT
  11. Lines: 28
  12.  
  13. In article <38188@unix.SRI.COM> mxmora@unix.SRI.COM (Matt Mora) writes:
  14. >In article <1992Aug27.182157.16567@qualcomm.com> sdorner@qualcom.qualcomm.com (Steve Dorner) writes:
  15. >
  16. >What about this common bug that I think even shut down ATT long distance
  17. >system:
  18. >
  19. >if (a=b) {
  20. >  //then do something
  21. >}
  22. >
  23. >When the programmer really meant a==b. Should there be a option to check
  24. >if statements?
  25.  
  26. Borland's C++ compiler, which can optionally generate 50+ style warnings, can
  27. do this.  And since I never write code like this where I mean '=', this works
  28. well for me.
  29.  
  30. BTW, I had heard that it was a missing comma in a shared Fortran COMMON block
  31. that shut down ATT.
  32.  
  33. >
  34. >Matt
  35. >
  36. Don
  37. -- 
  38. Don Wilcox                         | "For I am not ashamed of the Gospel of
  39. Washington University in St. Louis |   Christ, for it is the power of salvation
  40. email: wilcox@swarm.wustl.edu      |   to all who believe."
  41.