home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / std / cplus / 1161 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1017 b   |  35 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!ftpbox!motsrd!news
  3. From: shang@corp.mot.com (David (Lujun) Shang)
  4. Subject: Re: Proposal: Semantic Change on Operator "::"
  5. Message-ID: <1992Sep11.182405.17418@cadsun.corp.mot.com>
  6. Sender: news@cadsun.corp.mot.com
  7. Reply-To: shang@corp.mot.com
  8. Organization: Motorola, Inc., Software Research and Development, Rolling Meadows, IL. 60008
  9. References: <1992Sep11.173823.17289@cadsun.corp.mot.com>
  10. Distribution: World
  11. Date: Fri, 11 Sep 92 18:24:05 GMT
  12. Lines: 21
  13.  
  14. In article <1992Sep11.173823.17289@cadsun.corp.mot.com> shang@corp.mot.com  
  15. (David (Lujun) Shang) writes:
  16.  
  17. > In example:
  18. >         class A { public: static int i; };
  19. >         class A_ { public: static int i; };
  20. >         class B: public A { public: static A_ A;   };
  21. >         B b;
  22. > "B.A::i" denotes the integer of A_;
  23. > "B::A.i" denotes the integer of A;
  24. Sorry, should be 
  25.  
  26. "B.A.i" denotes the integer of A_;
  27. "B.A::i" denotes the integer of A;
  28.  
  29. Note that "::" has a hihger priority than ".".
  30.  
  31. David Shang
  32.