@trust is an encapsulation method, not an escape

ponce via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 7 02:15:08 PST 2015


On Saturday, 7 February 2015 at 10:02:23 UTC, ponce wrote:
> If I understand correctly, your rule o be a trusted function is:
> "Unable to create a memory corrutpion whatever the arguments".
>
> But here:
> - dest or src could be the null slice
> - the assert would go away in release
>
> So I though this example _could_ corrupt memory?
>

I see know it was already addressed:
http://forum.dlang.org/post/mb1vmt$etn$1@digitalmars.com


More information about the Digitalmars-d mailing list