Can we just have struct inheritence already?

Nemanja Boric dlang at nemanjaboric.com
Thu Jun 13 14:31:08 UTC 2019


On Thursday, 13 June 2019 at 13:32:05 UTC, Joseph Rushton 
Wakeling wrote:
> On Thursday, 13 June 2019 at 08:24:38 UTC, Nicholas Wilson 
> wrote:
>> No: the spec disagrees with the implementation, therefore at 
>> least one of them is wrong. It does not immediately follow 
>> that it is the spec that is in error.
>
> It's reasonable to say in this case that the spec is in error, 
> because Walter has always been 100% clear that @safe refers 
> only to memory safety, and the implementation reflects that 
> intent.

Not really:

https://issues.dlang.org/show_bug.cgi?id=19326

> tupleof is known to break through private access protections. 
> It should probably not be allowed in @safe code.


More information about the Digitalmars-d mailing list