home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:16208 comp.std.c++:1558
- Path: sparky!uunet!mcsun!Germany.EU.net!ira.uka.de!uka!news!hf
- From: hf@telematik.informatik.uni-karlsruhe.de (Harald Fuchs)
- Newsgroups: comp.lang.c++,comp.std.c++
- Subject: Re: The fate of my exponentiation operator proposal
- Date: 13 Nov 92 11:24:07
- Organization: Karlsruhe University, Germany
- Lines: 19
- Message-ID: <HF.92Nov13112407@whyaduck.telematik.informatik.uni-karlsruhe.de>
- References: <MATT.92Nov12234242@physics16.berkeley.edu>
- NNTP-Posting-Host: whyaduck.telematik.informatik.uni-karlsruhe.de
- In-reply-to: matt@physics16.berkeley.edu's message of 12 Nov 92 23:42:42
-
- In article <MATT.92Nov12234242@physics16.berkeley.edu>, matt@physics16.berkeley.edu (Matt Austern) writes:
-
- > I believe, however, that it is a mistake to dismiss the importance of
- > syntax so readily. Syntax matters! Syntax is the reason why C++
- > (unlike, for example, Objective C) supports operator overloading; for
- > that matter, syntax is the only reason why C++ (again, unlike, for
- > example, lisp) has operators at all.
-
- I don't think so. At least the assignment operator is not merely
- syntactic sugar. Together with the copy constructor it is used to
- describe object cloning; thus it must be overloadable. Allowing the
- other operators to be overloaded was then only the removal of a
- restriction instead of a syntactic extension.
- Hey, since the predecessor of C++, ``C with Classes'', didn't provide
- operator overloading _except_ for operator=, this might have been the
- way the language evolved. Maybe someone from AT&T can comment on this?
- --
-
- Harald Fuchs <hf@telematik.informatik.uni-karlsruhe.de>
-