memcpy, memset, memcmp and friends in the D Runtime

Orvid King blah38621 at gmail.com
Mon Apr 7 06:17:20 PDT 2014


I know that with DMD at least, memcpy, memset, and memcmp are all
intrinsics, meaning the compiler emits their implementations directly,
thus why there isn't a body for them in druntime.

On 4/7/14, Mike <none at none.com> wrote:
> On Monday, 7 April 2014 at 12:38:55 UTC, Steven Schveighoffer
> wrote:
>>
>> I think using using D's safer syntax of
>>
>> a[] = b[]
>>
>> and
>>
>> a[] = 0;
>>
>> Is much preferable to using memcpy/memset directly.
>>
>> They should do the "Right Thing", including calling
>> memcpy/memset when correct.
>>
>
> Oh! that is SO much better.  I should have known.  Thank you.
>


More information about the Digitalmars-d mailing list