Topic: static virtual (Was:Multiple Dispatch -- Better Than Item 31?)(http://www.pop.de)
Author: Lorenzo Bettini <bettini@gdn.dsi.unifi.it>
Date: 1999/11/23 Raw View
"J.Barfurth" wrote:
> > 2) Why _can't_ you have a virtual static function? There must be a good
> > reason, but I have no clue as to what that good reason is.
In my opinion I think the reason is quite simple:
a static method is not passed "this", and the (run time) type of this is
used to select a virtual method.
Lorenzo
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD student in Computer Science |
| Florence - Italy |
| Home Page : http://w3.newnet.it/bettini |
| http://infostud.dsi.unifi.it/~bettini |
| Mail Home : lorenzo.bettini@penteres.it |
| Mail University : bettini@dsi.unifi.it |
| http://www.mokabyte.it Java on line journal |
| http://rap.dsi.unifi.it/xklaim XKlaim language |
+-----------------------------------------------------+
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]