🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ARM Specs Contradiction

#693
From: Andrew Koenig
Date: Fri, 09 Oct 1992 13:46
19 lines
923 bytes
In article <1992Oct8.123635.10160@nuscc.nus.sg> arthur@solomon.technet.sg (Arthur Sombrito) writes:

> Which is the correct spec: a friend
> function is entered in the same scope or it is entered in file scope?

At their meeting this summer, the ISO/ANSI committee decided that friend
functions should be entered in the nearest enclosing non-class scope.
That means that

	class A {
		class B {
			friend void f();
		};
	};

implicitly declares f at file scope.
-- 
				--Andrew Koenig
				  ark@europa.att.com
Technical Details
Message-ID: <23847@alice.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!uwm.edu!linac!att!att!allegra!alice!ark
References: <1992Oct8.123635.10160@nuscc.nus.sg>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!uwm.edu!linac!att!att!allegra!alice!ark
From: ark@alice.att.com (Andrew Koenig)
Newsgroups: comp.std.c++
Subject: Re: ARM Specs Contradiction
Message-ID: <23847@alice.att.com>
Date: 9 Oct 92 13:46:32 GMT
References: <1992Oct8.123635.10160@nuscc.nus.sg>
Reply-To: ark@alice.UUCP ()
Organization: AT&T Bell Laboratories, Murray Hill NJ
Lines: 19