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