Can we just have struct inheritence already?

Vladimir Panteleev thecybershadow.lists at gmail.com
Thu Jun 13 09:44:12 UTC 2019


On Thursday, 13 June 2019 at 05:31:23 UTC, Walter Bright wrote:
> On 6/11/2019 3:02 AM, Vladimir Panteleev wrote:
>> [...]
>
> Ok, you got me there.
>
> Here's what Stroustrup says:
>
> http://www.stroustrup.com/bs_faq2.html#sizeof-empty

 From the page:

		Empty a, b;
		if (&a == &b) cout << "impossible: report error to compiler 
supplier";

However, no further justification is provided why that is a 
problem.

Perhaps it's something the C++ spec was written to guarantee, but 
does not apply to D?



More information about the Digitalmars-d mailing list