Article View: comp.std.c++
Article #24Re: Ambiguity with Operator::
From: Eric Smith
Date: Sat, 31 Oct 1992 15:58
Date: Sat, 31 Oct 1992 15:58
9 lines
942 bytes
942 bytes
In article <1992Oct22.232803.14743@cadsun.corp.mot.com> shang@corp.mot.com writes: > b.A::i // scope resolute, resolve in favor of base > B::A::i // member selector, resolve in favor of member by BC++ > // scope resolute, resolve in favor of base by MS C/C++ > B::A::NA // member selector, resolve in favor of member The operator precedence of :: is higher than that of . so b.A::i would correctly mean the A::i member of object b.
Technical Details
Message-ID:
<1992Oct31.155805.6176@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!ames!sun-barr!decwrl!csus.edu!netcom.com!ercReferences:
<1992Oct22.232803.14743@cadsun.corp.mot.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!ames!sun-barr!decwrl!csus.edu!netcom.com!erc From: erc@netcom.com (Eric Smith) Subject: Re: Ambiguity with Operator:: Message-ID: <1992Oct31.155805.6176@netcom.com> Organization: Netcom - Online Communication Services (408 241-9760 guest) References: <1992Oct22.232803.14743@cadsun.corp.mot.com> Date: Sat, 31 Oct 1992 15:58:05 GMT Lines: 9