Why can't we derive struct's?
Nicholas Wilson
iamthewilsonator at hotmail.com
Fri Dec 21 03:14:45 UTC 2018
On Friday, 21 December 2018 at 03:04:13 UTC, Walter Bright wrote:
> On 12/20/2018 12:15 AM, Manu wrote:
>> It also hogs the `alias this` slot.
>
> C++ doesn't have alias this, so why would there be a slot for
> it?
Its nothing to do with C++. If you do struct "inheritance" with
alias this, because there is no multiple alias this, you can't
then alias this the struct to something else.
More information about the Digitalmars-d
mailing list