home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c++
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!nntp.uio.no!hbf
- From: hbf@durin.uio.no (Hallvard B Furuseth)
- Subject: static virtual
- Message-ID: <HBF.92Sep15135918@durin.uio.no>
- Sender: news@ulrik.uio.no (Mr News)
- Nntp-Posting-Host: durin.uio.no
- Organization: University of Oslo, Norway
- Date: Tue, 15 Sep 1992 12:59:18 GMT
- Lines: 10
-
- Why are static virtual functions illegal? This would be useful for
- functions such as `virtual int SymbolTable::compare(char *, char *)'.
- It's a waste to pass a pointer to `this' to those functions.
-
- And while I'm writing: How about static virtual variables? These would
- be useful for per-class data such as a "description" fields for a class.
- Maybe only const variables should be allowed though.
- --
-
- Hallvard
-