home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:11304 comp.std.c++:909
- Newsgroups: comp.lang.c++,comp.std.c++
- Path: sparky!uunet!mole-end!mat
- From: mat@mole-end
- Subject: Re: Language extensions for run-time type identification
- Message-ID: <1992Jul21.094204.20100@mole-end>
- Organization: :
- References: <TMB.92Jul20182052@arolla.idiap.ch> <1992Jul20.220534.1365@cadsun.corp.mot.com>
- Date: Tue, 21 Jul 1992 09:42:04 GMT
- Lines: 27
-
- In article <1992Jul20.220534.1365@cadsun.corp.mot.com>, shang@corp.mot.com (David (Lujun) Shang) writes:
-
- > I sencond this. As I already said, run time type checking of classes
- > only with virtual functions is not a serious solution.
-
- > David Shang
-
- Let's be sure that we are talking about the same thing, then I'll ask you
- to refute an assumption underlying the current proposal.
-
- The current proposal would allow a number of things, including at least
- checked downcasting and some kind of comparison-for-equality of the exact
- type of objects.
-
- There are many bad uses for these facilities, but there are also good
- uses, or so it is believed.
-
- The assumption underlying the decision to include only classes with
- virtual functions is that a class that has no polymorphic behavior
- whatsoever (not even a virtual destructor) cannot be used in any way
- that is both safe and interesting even with the proposed runtime type
- support. Can you refute this assumption?
- --
- (This man's opinions are his own.)
- From mole-end Mark Terribile
-
- uunet!mole-end!mat, Somewhere in Matawan, NJ
-