to_d_arrayassign_l
fn
Tarr _d_arrayassign_l(Tarr : T[], T)(return scope Tarr to, scope Tarr from) @trustedDoes array assignment (not construction) from another array of the same element type. Handles overlapping copies. Assumes the right hand side is an lvalue,
Used for static array assignment with non-POD element types:
struct S
{
~this() {} // destructor, so not Plain Old Data
}
void main()
{
S[3] arr;
S[3] lvalue;
arr = lvalue;
// Generates:
// _d_arrayassign_l(arr[], lvalue[]), arr;
}Parameters
to | destination array |
from | source array |