[comp.lang.c++] MI-- Direct + Indirect

mat@mole-end.UUCP (Mark A Terribile) (05/26/90)

Consider the following:

	class	mut_base
	{
		. . .
	};

	class	deriv_1
	 : public mut_base
	{
		. . .
	};

	class	mult_deriv
	 : public deriv_1, public mut_base
	{
		. . .
	};

The AT&T Release 2.0 version I have refuses to accept this, insisting that I
am including a base class twice.  Zortech's 2.06 accepts it.  The Release 2.0
Reference manual states that you may not derive directly twice from the
same base class; it appears that cfront assumes that if I have derived from
it indirectly no direct derivation is possible.

What's the story?  Is AT&T wrong and Walter right?  (I hope so.)  Or is
AT&T right?

As an aside, to the fellows at AT&T: I spoke this week with another C++
programmer who feels the lack of Parameterized Types and feels that MI
will not be fully useful until PT comes along.  Please find time to get
templates into a release!
-- 

 (This man's opinions are his own.)
 From mole-end				Mark Terribile