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

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!cmcl2!phri!alanine.phri.nyu.edu!roy
  2. From: roy@alanine.phri.nyu.edu (Roy Smith)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: incrementation differences/THINK C 4.0 vs. 5.0
  5. Message-ID: <1992Aug28.143614.22079@phri.nyu.edu>
  6. Date: 28 Aug 92 14:36:14 GMT
  7. References: <1992Aug27.182157.16567@qualcomm.com> <38188@unix.SRI.COM> <1992Aug28.130710.18938@qualcomm.com>
  8. Sender: news@phri.nyu.edu (News System)
  9. Organization: Public Health Research Institute (New York)
  10. Lines: 31
  11. Nntp-Posting-Host: alanine.phri.nyu.edu
  12.  
  13. sdorner@qualcom.qualcomm.com (Steve Dorner) writes:
  14. >It does *not* know where the missing ";" should go.  It knows where
  15. >something is missing.  An '=' would be a perfectly good choice, too.
  16.  
  17.     I've been thinking about this for a day or so.  In the fragment
  18. "a=b=c d=e;" the blank could be replaced with just about anything and make
  19. a syntactically correct statement:
  20.  
  21.     Any alphanumeric would turn "c d" into a variable name.
  22.  
  23.     Any binary arithmentic operator (+, -, *, /)would be fine.
  24.  
  25.     Any relational operator (==, !=, <, >, <=, >=) would be fine.
  26.  
  27.     Any boolean operator (||, &&) would be fine.
  28.  
  29.     Any binary logical operator (&, |, etc) would be fine.
  30.  
  31.     Any assignment operator (=, =+, =-, =*, =/) would be fine.
  32.  
  33.     Deleting the space completely would give you the variable "cd".
  34.  
  35.     A comma would be fine, giving you two sequential assignments.
  36.  
  37.     All things considered, the a-priori probability that you need to
  38. replace the space by a semicolon is pretty slim.
  39. -- 
  40. roy@wombat.phri.nyu.edu (Roy Smith)
  41. Public Health Research Institute
  42. 455 First Avenue, New York, NY 10016, USA
  43. "This never happened to Bart Simpson."
  44.