array idioms

Nick Treleaven nospam at example.net
Mon Feb 28 09:23:32 PST 2011


On Fri, 25 Feb 2011 23:48:19 +0100, spir wrote:

> we cannot even use something like memcopy because the source & target
> mem areas overlap

In those cases, use memmove.

But maybe there's a D-ish way that's just as efficient, not sure.


More information about the Digitalmars-d-learn mailing list