Replacing C's memcpy with a D implementation

Walter Bright newshound2 at digitalmars.com
Mon Jun 11 03:31:05 UTC 2018


On 6/10/2018 7:49 PM, Mike Franklin wrote:
> On Sunday, 10 June 2018 at 15:12:27 UTC, Kagamin wrote:
>> If the compiler can't get it right then who can?
> The compiler implementation is faulty.  It rewrites the expressions to an 
> `extern(C)` runtime implementation that is not @safe, nothrow, or pure: 
> https://github.com/dlang/druntime/blob/706081f3cb23f4c597cc487ce16ad3d2ed021053/src/rt/lifetime.d#L1442  
> The backend is not involved.

It's only faulty if there's a bug in it. It's essentially @trusted code.


More information about the Digitalmars-d mailing list