pointer escaping return scope bug?

Nick Treleaven nick at geany.org
Thu Dec 15 20:07:59 UTC 2022


On Thursday, 15 December 2022 at 20:02:38 UTC, Nick Treleaven 
wrote:
>     auto f() return @trusted => p ? p : v.ptr;

Whoops, that can't be @trusted unless I `assert(p)`.


More information about the Digitalmars-d-learn mailing list