void moveFrom(int[] a, in int[] b) @trusted in{
    assert(a.length >= b.length);
} body {
memmove(cast(void*)a.ptr, cast(void*)b.ptr, b.length * int.sizeof);
}

Is this ok? And if not, how should it be done, preferably without changing the condition or memmove call?

Reply via email to