home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11864 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.4 KB

  1. Path: sparky!uunet!cimshop!davidm
  2. From: davidm@consilium.com (David S. Masterson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: DEC C++ right or wrong on member pointer construct?
  5. Message-ID: <DAVIDM.92Jul31105728@consilium.com>
  6. Date: 31 Jul 92 17:57:28 GMT
  7. References: <45110@sunquest.UUCP>
  8. Sender: root@cimshop.UUCP
  9. Organization: Consilium Inc., Mountain View, California
  10. Lines: 33
  11. In-reply-to: whm@sunquest.UUCP's message of 29 Jul 92 07:47:51 GMT
  12. X-Posting-Software: GNUS 3.13  [ NNTP-based News Reader for GNU Emacs ]
  13.  
  14. >>>>> On 29 Jul 92 07:47:51 GMT, whm@sunquest.UUCP (Bill Mitchell) said:
  15.  
  16. ->     class Base {
  17. ->     };
  18.  
  19. ->     class Derived: public Base {
  20. ->     };
  21.  
  22. ->     class U {
  23. ->       public:
  24. ->     Derived d;
  25. ->     };
  26.  
  27. ->     struct Bp {
  28. ->     Base U::*a;
  29. ->     };
  30.  
  31. ->     struct Bp Bpmap[] = {
  32. ->     &U::d,  // error?
  33. ->     0
  34. ->     };
  35.  
  36. Something does seem right about this code (there's a lot missing from it).
  37. How can you initialize Bpmap to the address of the *declaration* of U?
  38. --
  39. ====================================================================
  40. David Masterson                    Consilium, Inc.
  41. (415) 691-6311                    640 Clyde Ct.
  42. davidm@consilium.com                Mtn. View, CA  94043
  43. ====================================================================
  44. "Bill Gates says no matter how much more power we can supply, he'll develop 
  45.  some really exciting software that will bring the machine to its knees."
  46. -- Intel VP David House, In _EE_Times_, 16 October 1989
  47.