home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!microsoft!hexnut!jimad
- From: jimad@microsoft.com (Jim Adcock)
- Subject: Re: static members in derived classes
- Message-ID: <1992Dec11.215549.5122@microsoft.com>
- Date: 11 Dec 92 21:55:49 GMT
- Organization: Microsoft Corporation
- References: <1g7c8fINNdhf@horus.ap.mchp.sni.de> <Bz20Gt.29x@cs.uiuc.edu>
- Lines: 12
-
- In article <Bz20Gt.29x@cs.uiuc.edu> pjl@cs.uiuc.edu (Paul Lucas) writes:
- |>We don't understand this behavior of C++. Can anyone explain to us.
- |
- |******> What's to understand? That's the way it is. What you're describing
- | are "class instance varaibles" in Smalltalk; C++ has no equivalent.
-
- The equivalent in C++ is to provide one or more virtual functions that
- give access to the class-specific information. It's certainly true
- that C++ provides no built-in support for class instance behaviors --
- you have to write the code yourself. At least until runtime type identification
- is adopted. Then at least some of the common requirements will be built-in.
-
-