🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Multiple inheritance oversight?

#574
From: Peter GOLDE
Date: Tue, 06 Nov 1990 03:23
32 lines
1165 bytes
p. 198 of the ARM appears to have overlooked a case involving multiple
inheritance of the same class twice.  It states: "A class may not be
specified as a direct base class of a derived class more than once but
it may be an indirect base class more than once".

Thus prohibiting:

		    B	B
		     \ /
		      A

But allowing:

		    B	    B
		     \     /
		      X   Y
		       \ /
			A

It's unclear from the wording whether an object can be
an indirect base class once and a direct base class once, i.e.,

			    B
			   /
		      B   Y
		       \ /
			A

cfront 2.0 disallows this.  This is probably the right behavior, since
none of the immediate base B's members can be accessed, even with the
scope operator.  However, the wording of the standard should be changed
to specifically address this case.
Technical Details
Message-ID: <58836@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!microsoft!petergo

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!microsoft!petergo
From: petergo@microsoft.UUCP (Peter GOLDE)
Newsgroups: comp.std.c++
Subject: Multiple inheritance oversight?
Message-ID: <58836@microsoft.UUCP>
Date: 6 Nov 90 03:23:19 GMT
Reply-To: petergo@microsoft.UUCP (Peter GOLDE)
Organization: Microsoft Corp., Redmond WA
Lines: 32