copying memory in phobos

ketmar ketmar at ketmar.no-ip.org
Tue Apr 8 04:56:41 PDT 2014


> I understand that.  But why is dest[] = src[] not good enough 
> for run-time?
'cause some compilers (gcc, for example) has memcpy() as 
'intrinsic' and generates better inline code for it sometimes. 
it's just a small hint for compiler backend, and faster code is 
good, isn't it? ;-)


More information about the Digitalmars-d-learn mailing list