[Issue 24724] Error when @trusted function returns reference to parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 26 16:06:29 UTC 2024


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

elpenguino+D at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |elpenguino+D at gmail.com

--- Comment #1 from elpenguino+D at gmail.com ---
https://dlang.org/spec/function.html#trusted-functions

"Like safe functions, trusted functions have safe interfaces. Unlike safe
functions, this is not enforced by restrictions on the function body."

We have a method to enforce safe interfaces. It's @safe.

--


More information about the Digitalmars-d-bugs mailing list