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

  1. Path: sparky!uunet!mcsun!news.forth.gr!news.forth.gr!kilitzir
  2. From: kilitzir@antigone.csi.forth.gr (Xristos Kilitzirakis)
  3. Newsgroups: comp.std.c++
  4. Subject: c++ implementation (hard)
  5. Date: 12 Nov 1992 09:34:22 +0200
  6. Organization: Institute of Computer Science, FORTH Hellas
  7. Lines: 32
  8. Message-ID: <kilitzir.721552974@news.forth.gr>
  9. NNTP-Posting-Host: antigone.csi.forth.gr
  10. Summary: a implementation problem
  11. Keywords: c++
  12.  
  13. Welcome to the hardline accoarding to XXXristos.
  14. here's the problem:
  15. suppose class a is a base class and b,c are derived,that is:
  16.  
  17. a--->b
  18. |
  19. ---->c
  20.  
  21. all right by then.The problem is,that any operator between these
  22. 2 classes , can give any of the 4 classes,depending on many
  23. things , not only the type of operands.for ex.
  24. a+b --->c|d|a,
  25. so I cannot define the return type ,before inspecting the operands.
  26.  
  27. Any suggestions of implementing (reordering,add a new class,
  28.   forgetting the hole thing, etc).          ^^^^^^^^^^^^^^^
  29.  
  30. Well , the implementation is 
  31. a -> m_n matrix
  32. b-> n-n topelitz matrix (needs only 2*n-1 elems)
  33. c-> n_n circulant matrix(needs only n elems)
  34.  
  35. It may look easy to you,but for me is ...
  36. 'the answer is always easy , when you know it'
  37.  
  38.  
  39.  
  40.  
  41. XXXXristos
  42. e-mail yr answers in
  43. kilitzir@csd.uch.gr
  44. kilitzir@csi.forth.gr
  45.