home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19733 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.7 KB

  1. Xref: sparky comp.lang.c++:19733 comp.object:4988
  2. Newsgroups: comp.lang.c++,comp.object
  3. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!jrdzzz.jrd.dec.com!jit345.bad.jit.dec.com!diamond
  4. From: diamond@jit345.bad.jit.dec.com (Norman Diamond)
  5. Subject: Re: Pros and cons of C++
  6. Message-ID: <C18uxM.K1z@jrd.dec.com>
  7. Sender: usenet@jrd.dec.com (USENET News System)
  8. Nntp-Posting-Host: jit345
  9. Reply-To: diamond@jit.dec.com (Norman Diamond)
  10. Organization: Digital Equipment Corporation Japan , Tokyo
  11. References: <1993Jan18.141837.23733@neptune.inf.ethz.ch> <1993Jan18.162516.6104@midway.uchicago.edu> <1993Jan18.203722.27556@neptune.inf.ethz.ch> <1993Jan20.155100.22563@udel.edu>
  12. Date: Fri, 22 Jan 1993 07:17:46 GMT
  13. Lines: 22
  14.  
  15. In article <1993Jan20.155100.22563@udel.edu> carroll@rockhead.cis.udel.edu (Mark C. Carroll) writes:
  16. >The semantics (meaning) of a language is understood by most people in
  17. >terms of its primitive operations and how they combine. The meaning of
  18. >C++ programs can be made *very* obscure by redefining the meaning of
  19. >those primitive operations.
  20.  
  21. Like this?
  22.  
  23. #define sizeof -
  24.  
  25. >Consider trying to define the meaning of the primitive operation =
  26. >denotationally, when it means one thing almost all of the time, but it
  27. >_can_ take on a completely different meaning when used on _some_ objects.
  28.  
  29. Define the meaning of the primitive operations in terms of the operations.
  30. Use meta-symbols in your denotations.  Let the C++ terminals initially
  31. refer to the corresponding meta-symbols, but be overrideable in some scopes
  32. just like identifier names can be overridden in nested scopes.
  33. --
  34. Norman Diamond                diamond@jit.dec.com
  35. If this were the company's opinion, I wouldn't be allowed to post it.
  36. Pardon me?  Or do I have to commit a crime first?
  37.