Can we just have struct inheritence already?

Timon Gehr timon.gehr at gmx.ch
Fri Jun 14 01:38:37 UTC 2019


On 14.06.19 01:30, Manu wrote:
> To be clear, I'm not disagreeing with Walter; I agree with him. I'm
> just pointing out that his position is inconsistent, and this quote is
> correct. But you have to accept that if this quote is correct, then `=
> void` shouldn't be @safe either.

Indeed. (If anyone is wondering: For some `struct S` with private 
members, `S s=void;` will produce an `s` whose private members contain 
garbage, which is not much better than just assigning values to them 
directly.)


More information about the Digitalmars-d mailing list