Discussion Thread: DIP 1035-- at system Variables--Community Review Round 1

Dennis dkorpel at gmail.com
Wed Jun 10 15:13:57 UTC 2020


On Wednesday, 10 June 2020 at 12:59:16 UTC, Stanislav Blinov 
wrote:
> That one is just an incorrect example in the DIP. It 
> uncoditionally trusts a (possibly @system) destructor of T.

That's the point of the example. It shows the problems with 
@trusted constructors and argues for allowing initialization of 
@system variables in @safe code. Note that this was a very late 
addition, so it did not get draft review and could use some 
improvements.


More information about the Digitalmars-d mailing list