home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:19733 comp.object:4988
- Newsgroups: comp.lang.c++,comp.object
- Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!jrdzzz.jrd.dec.com!jit345.bad.jit.dec.com!diamond
- From: diamond@jit345.bad.jit.dec.com (Norman Diamond)
- Subject: Re: Pros and cons of C++
- Message-ID: <C18uxM.K1z@jrd.dec.com>
- Sender: usenet@jrd.dec.com (USENET News System)
- Nntp-Posting-Host: jit345
- Reply-To: diamond@jit.dec.com (Norman Diamond)
- Organization: Digital Equipment Corporation Japan , Tokyo
- 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>
- Date: Fri, 22 Jan 1993 07:17:46 GMT
- Lines: 22
-
- In article <1993Jan20.155100.22563@udel.edu> carroll@rockhead.cis.udel.edu (Mark C. Carroll) writes:
- >The semantics (meaning) of a language is understood by most people in
- >terms of its primitive operations and how they combine. The meaning of
- >C++ programs can be made *very* obscure by redefining the meaning of
- >those primitive operations.
-
- Like this?
-
- #define sizeof -
-
- >Consider trying to define the meaning of the primitive operation =
- >denotationally, when it means one thing almost all of the time, but it
- >_can_ take on a completely different meaning when used on _some_ objects.
-
- Define the meaning of the primitive operations in terms of the operations.
- Use meta-symbols in your denotations. Let the C++ terminals initially
- refer to the corresponding meta-symbols, but be overrideable in some scopes
- just like identifier names can be overridden in nested scopes.
- --
- Norman Diamond diamond@jit.dec.com
- If this were the company's opinion, I wouldn't be allowed to post it.
- Pardon me? Or do I have to commit a crime first?
-