home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:11217 comp.std.c++:889
- Newsgroups: comp.lang.c++,comp.std.c++
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!netmbx!jrobie
- From: jrobie@netmbx.netmbx.de (Jonathan Robie)
- Subject: Re: Language extensions for run-time type identification
- Organization: netmbx, Berlin, Germany
- Date: Tue, 21 Jul 1992 10:34:36 GMT
- Message-ID: <N3A5KQD@netmbx.netmbx.de>
- References: <EY048MK@netmbx.netmbx.de> <pathak-200792135100@virtual.mitre.org>
- Lines: 47
-
- pathak@mitre.org (Heeren Pathak) writes:
-
- >In article <EY048MK@netmbx.netmbx.de>, jrobie@netmbx.netmbx.de (Jonathan
- >Robie) wrote:
- >>
- >> shang@corp.mot.com (David (Lujun) Shang) writes:
- >>
- >> >The language should provide run time type checking as well as array bounds
- >> >checking. You can also have a switch to turn off them if you like to.
- >> >
- >>
- >> It may be important for compilers to provide such a switch since the
- >> memory overhead needed to store type information for all classes can
- >> be significant. Pragmas would be necessary to switch it on and off
- >> since you might need it for some classes but not for others....messy,
- >> isn't it?
- >>
-
- >Why not use MI to provide a "standard" mix-in class that provides run-time
- >identification?
-
- I assume you mean that this class would give access to the run-time
- identification provided by the compiler, right? That might make sense,
- but I don't like the idea of making the compiler look at the derivation
- tree to see whether it should generate run time identification.
-
- Obviously, no class is going to be able to generate run time identification
- for objects including it or derived from it. How should it know the
- relevant types?
-
-
- Jonathan
-
- ===========================================================================
-
- Jonathan Robie jrobie@netmbx.UUCP
- Arnold-Zweig-Str. 44 jrobie@netmbx.in-berlin.de
- O-1100 Berlin
- Deutschland Phone: +37 (2) 472 04 19 (Home, East Berlin)
- +49 (30) 342 30 66 (Work, West Berlin)
-
-
- --
- Jonathan
-
- ===========================================================================
-
-