Immutable woes

Stanislav Blinov blinov at loniir.ru
Tue Sep 21 05:27:22 PDT 2010


  21.09.2010 11:29, Bob Cowdery wrote:
> if I say something like:
> float[] xfer = new float[512];
> xfer = buffer[0 .. $/2];
> tid.send(xfer);
Try this

auto xfer = buffer[0..$/2].idup;
tid.send(xfer);


More information about the Digitalmars-d-learn mailing list