home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / arch / 10834 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.9 KB

  1. Xref: sparky comp.arch:10834 comp.lang.misc:3739
  2. Newsgroups: comp.arch,comp.lang.misc
  3. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
  4. From: jlg@cochiti.lanl.gov (J. Giles)
  5. Subject: Re: Hardware Support for Numeric Algorithms
  6. Message-ID: <1992Nov17.191938.16161@newshost.lanl.gov>
  7. Sender: news@newshost.lanl.gov
  8. Organization: Los Alamos National Laboratory
  9. References: <721627374@sheol.UUCP> <Bxpoy9.GD6@mentor.cc.purdue.edu> <id.6S0V.FKH@ferranti.com> <Bxv2t2.4FH@mentor.cc.purdue.edu>
  10. Date: Tue, 17 Nov 1992 19:19:38 GMT
  11. Lines: 24
  12.  
  13. In article <Bxv2t2.4FH@mentor.cc.purdue.edu>, hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  14. |> [... examples of obfuscating syntax including `|' for boolean OR,
  15. |>      '*' for dereferencing, end `;' for statement termination ...]
  16.  
  17. I'm disappointed with Dr. Rubin.  He left out such obvious ones as:
  18. making a leading zero digit mean octal!  Or, the fact that `/*' is
  19. actually *ambiguous* in C because it's either a comment or a divide
  20. followed by a dereference (C resolves this by simply filtering out
  21. comments in the preprocessor phase without warning that something
  22. unintended may have happened).  He left out that unsigned integers
  23. are considered to be a *promotion* over signed integers the same size:
  24. they aren't, but C treats them as such.  He left out that the keyword 
  25. "static" means "private" one place and "static allocation" elsewhere.
  26. He left out that there are 50+ operators and 15 levels of precedence.
  27. Or, that the precedences of the operators were selected based on their
  28. algebraic form not their semantic content (for example, it would be more
  29. natural to have unary minus with the same precedence as subtraction).
  30. He didn't mention that the distinction between bit-wise and logical
  31. operators would not have been necessary if C had a LOGICAL data type.
  32.  
  33. Etc....
  34.  
  35. -- 
  36. J. Giles
  37.