home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16208 < prev    next >
Encoding:
Internet Message Format  |  1992-11-13  |  1.6 KB

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