@trusted assumptions about @safe code

Walter Bright newshound2 at digitalmars.com
Tue May 26 09:35:06 UTC 2020


On 5/26/2020 12:07 AM, Timon Gehr wrote:
> I don't think so. @trusted code can't rely on @safe code behaving a certain way 
> to ensure memory safety, it has to be defensive.

I agree. The trusted code here is not passing safe arguments to g(), but it is 
trusted to do so.


More information about the Digitalmars-d mailing list