Discussion Thread: DIP 1035-- at system Variables--Community Review Round 1
Dennis
dkorpel at gmail.com
Wed Jun 10 15:43:21 UTC 2020
On Wednesday, 10 June 2020 at 15:33:14 UTC, Stanislav Blinov
wrote:
> Yes it could, as the example emphasizes the copy ctor but makes
> no mention of a dtor :) I.e. the ctor in the example cannot
> possibly be explicitly marked @trusted unless @safe-ty of T's
> dtor is ascertained first.
It's an example of bad @trusted. The copy constructor is an
example of why it's bad, it's not the only reason. I'll mention
the destructor for completeness though.
More information about the Digitalmars-d
mailing list