🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Peter GOLDE Tue, 06 Nov 1990 03:23
Multiple inheritance oversight?
#574
Author: 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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads