copying memory in phobos

Mike none at none.com
Wed Apr 9 01:24:54 PDT 2014


On Tuesday, 8 April 2014 at 14:59:35 UTC, Artur Skawina wrote:
> 'memcoy' being a built-in compiler intrinsic means that when 
> the compiler
> sees a 'memcpy' call, it does some checks (eg is the length 
> statically
> known and small enough?) and then can generated the copy 
> instructions
> directly, instead of calling the lib function.

Then it could do such magic in the _d_arraycopy function where 
the call to memcpy exists.  I'm still not seeing the motivation 
behind putting this call to memcpy in Phobos.



More information about the Digitalmars-d-learn mailing list