home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cimshop!davidm
- From: davidm@consilium.com (David S. Masterson)
- Newsgroups: comp.lang.c++
- Subject: Re: DEC C++ right or wrong on member pointer construct?
- Message-ID: <DAVIDM.92Jul31105728@consilium.com>
- Date: 31 Jul 92 17:57:28 GMT
- References: <45110@sunquest.UUCP>
- Sender: root@cimshop.UUCP
- Organization: Consilium Inc., Mountain View, California
- Lines: 33
- In-reply-to: whm@sunquest.UUCP's message of 29 Jul 92 07:47:51 GMT
- X-Posting-Software: GNUS 3.13 [ NNTP-based News Reader for GNU Emacs ]
-
- >>>>> On 29 Jul 92 07:47:51 GMT, whm@sunquest.UUCP (Bill Mitchell) said:
-
- -> class Base {
- -> };
-
- -> class Derived: public Base {
- -> };
-
- -> class U {
- -> public:
- -> Derived d;
- -> };
-
- -> struct Bp {
- -> Base U::*a;
- -> };
-
- -> struct Bp Bpmap[] = {
- -> &U::d, // error?
- -> 0
- -> };
-
- Something does seem right about this code (there's a lot missing from it).
- How can you initialize Bpmap to the address of the *declaration* of U?
- --
- ====================================================================
- David Masterson Consilium, Inc.
- (415) 691-6311 640 Clyde Ct.
- davidm@consilium.com Mtn. View, CA 94043
- ====================================================================
- "Bill Gates says no matter how much more power we can supply, he'll develop
- some really exciting software that will bring the machine to its knees."
- -- Intel VP David House, In _EE_Times_, 16 October 1989
-