🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #121

Re: What does "::" really mean?

#121
From: Johan Bengtsson
Date: Wed, 09 Sep 1992 19:40
27 lines
1491 bytes
shang@corp.mot.com (David (Lujun) Shang) writes:
: 
: We should use:
:  
:     AA1::AA.NAA
:  
:  to denote the class NAA nested in class AA nested in class AA1, and use
:  
:     AA1::AA::NAA
:  
:  to denote the class NAA nested in the base class AA of AA1.

Since people seem to diagree what the "natural" rule is for
scope order when both nesting and inheritance are considered, I'd
rather keep AA1::AA::NAA for both cases, and require that these
expressions be unambigous.

Even if clear rules are defined, I think it will be confusing
if the same name may appear along different inheritance/nested
paths.  It is (kind of) the visibility aspect of multiple inheritance
applied to nesting as well.

-- 
--------------------------------------------------------------------------
| Johan Bengtsson, Telia Research AB, Aurorum 6, S-951 75 Lulea, Sweden  |
| Johan.Bengtsson@lulea.trab.se; Voice:(+46)92075471; Fax:(+46)92075490  |
--------------------------------------------------------------------------
Technical Details
Message-ID: <4946@holden.lulea.trab.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mcsun!sunic!hagbard!loglule!jbn
References: <1992Sep8.134341.25077@cadsun.corp.mot.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mcsun!sunic!hagbard!loglule!jbn
From: jbn@lulea.trab.se (Johan Bengtsson)
Newsgroups: comp.std.c++,comp.lang.c++
Subject: Re: What does "::" really mean?
Message-ID: <4946@holden.lulea.trab.se>
Date: 9 Sep 92 19:40:25 GMT
References: <1992Sep8.134341.25077@cadsun.corp.mot.com>
Followup-To: comp.std.c++
Organization: Telia Research AB, Aurorum 6, 951 75 Lulea, Sweden
Lines: 27
X-Newsreader: Tin 1.1 PL4