DIP1028 - Rationale for accepting as is

Walter Bright newshound2 at digitalmars.com
Mon May 25 09:17:14 UTC 2020


On 5/23/2020 5:13 AM, Steven Schveighoffer wrote:
> And let's be honest here, if you are OK with it, putting @trusted: at the top of 
> your extern(C) functions is fine with me. At least that's not a lie.

@trusted says the interface to the function is safe. If the programmer did not 
actually check the interface, it is greenwashing. For example, memcpy() does not 
have a safe interface and marking it @trusted doesn't improve matters.


More information about the Digitalmars-d-announce mailing list