Article View: comp.std.c++
Article #307Scopes and Friend declarations
From: Daniel Edelson
Date: Mon, 06 Aug 1990 22:48
Date: Mon, 06 Aug 1990 22:48
17 lines
1079 bytes
1079 bytes
From the ARM, section 3.2, Scopes ``A name first declared by a friend declaration belongs to the global scope.'' From the ARM, section 11.4, Friends ``If a class or function mentioned as a friend has not been declared its name is entered in the same scope as the name of the class containing the declaration.'' Clearly these conflict, particularly in the presense of local and nested classes. Is anyone at AT&T willing to bless rule or the other? Daniel Edelson daniel@cis.ucsc.edu
Technical Details
Message-ID:
<5791@darkstar.ucsc.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!helios.ee.lbl.gov!pasteur!agate!darkstar!terra.ucsc.edu!danielShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!helios.ee.lbl.gov!pasteur!agate!darkstar!terra.ucsc.edu!daniel From: daniel@terra.ucsc.edu (Daniel Edelson) Newsgroups: comp.std.c++ Subject: Scopes and Friend declarations Keywords: scopes, friends, annotated reference, a real mess Message-ID: <5791@darkstar.ucsc.edu> Date: 6 Aug 90 22:48:29 GMT Sender: usenet@darkstar.ucsc.edu Reply-To: daniel@terra.ucsc.edu (Daniel Edelson) Organization: University of California, Santa Cruz Lines: 17 X-Local-Date: 6 Aug 90 15:48:29 PDT