home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c++
- Path: sparky!uunet!ftpbox!motsrd!news
- From: shang@corp.mot.com (David (Lujun) Shang)
- Subject: Re: Proposal: Semantic Change on Operator "::"
- Message-ID: <1992Sep11.182405.17418@cadsun.corp.mot.com>
- Sender: news@cadsun.corp.mot.com
- Reply-To: shang@corp.mot.com
- Organization: Motorola, Inc., Software Research and Development, Rolling Meadows, IL. 60008
- References: <1992Sep11.173823.17289@cadsun.corp.mot.com>
- Distribution: World
- Date: Fri, 11 Sep 92 18:24:05 GMT
- Lines: 21
-
- In article <1992Sep11.173823.17289@cadsun.corp.mot.com> shang@corp.mot.com
- (David (Lujun) Shang) writes:
-
- > In example:
- >
- > class A { public: static int i; };
- > class A_ { public: static int i; };
- > class B: public A { public: static A_ A; };
- > B b;
- >
- > "B.A::i" denotes the integer of A_;
- > "B::A.i" denotes the integer of A;
- >
- Sorry, should be
-
- "B.A.i" denotes the integer of A_;
- "B.A::i" denotes the integer of A;
-
- Note that "::" has a hihger priority than ".".
-
- David Shang
-