home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19679 < prev    next >
Encoding:
Text File  |  1993-01-21  |  808 b   |  31 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!mcsun!julienas!jussieu!clochette!clerc
  3. From: clerc@gla.ecoledoc.ibp.fr
  4. Subject: operators
  5. Message-ID: <1993Jan21.165621.16704@jussieu.fr>
  6. Keywords:  operators,inheritance
  7. Sender: news@jussieu.fr (Le Facteur)
  8. Nntp-Posting-Host: clochette.ecoledoc.ibp.fr
  9. Reply-To: clerc@gla.ecoledoc.ibp.fr
  10. Organization: Universite Paris VI/Paris VII
  11. Date: Thu, 21 Jan 1993 16:56:21 GMT
  12. Lines: 17
  13.  
  14.  
  15. Id like to express in C++ the fact that operators < <= >= can
  16. be defined using operators > and = (eg: a < b  is b > a)
  17. I would use a class MathObj (that would implement < <= >= using > and =)
  18. and derive my classes from it, redifining only the basic operators > and =
  19.  
  20.  
  21. How can I WRITE that in C++ ? (no template solution please)
  22.  
  23.  
  24. thanx in advance
  25.  
  26.             clerc@gla.ecoledoc.ibp.fr
  27.  
  28.  
  29.  
  30.  
  31.