home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.forth.gr!news.forth.gr!kilitzir
- From: kilitzir@antigone.csi.forth.gr (Xristos Kilitzirakis)
- Newsgroups: comp.std.c++
- Subject: c++ implementation (hard)
- Date: 12 Nov 1992 09:34:22 +0200
- Organization: Institute of Computer Science, FORTH Hellas
- Lines: 32
- Message-ID: <kilitzir.721552974@news.forth.gr>
- NNTP-Posting-Host: antigone.csi.forth.gr
- Summary: a implementation problem
- Keywords: c++
-
- Welcome to the hardline accoarding to XXXristos.
- here's the problem:
- suppose class a is a base class and b,c are derived,that is:
-
- a--->b
- |
- ---->c
-
- all right by then.The problem is,that any operator between these
- 2 classes , can give any of the 4 classes,depending on many
- things , not only the type of operands.for ex.
- a+b --->c|d|a,
- so I cannot define the return type ,before inspecting the operands.
-
- Any suggestions of implementing (reordering,add a new class,
- forgetting the hole thing, etc). ^^^^^^^^^^^^^^^
-
- Well , the implementation is
- a -> m_n matrix
- b-> n-n topelitz matrix (needs only 2*n-1 elems)
- c-> n_n circulant matrix(needs only n elems)
-
- It may look easy to you,but for me is ...
- 'the answer is always easy , when you know it'
-
-
-
-
- XXXXristos
- e-mail yr answers in
- kilitzir@csd.uch.gr
- kilitzir@csi.forth.gr
-