memcpy() comparison: C, Rust, and D

Michael Howell via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 1 09:56:28 PST 2017


On Wednesday, 1 February 2017 at 17:28:28 UTC, Michael Howell 
wrote:
> This function signature *does* guarantee that src and self 
> don't overlap, unlike the C and D versions. Personally, I think 
> that's at least as important as whether the function's pure or 
> not.

Oops, forgot the "restrict" keyword. It is there in the C and D 
versions.


More information about the Digitalmars-d mailing list