array copy/ref question
Lars Ivar Igesund
larsivar at igesund.net
Mon Aug 11 14:58:38 PDT 2008
Brian Sturk wrote:
> I'm trying to get a handle on the array assignment, slicing operations and
> am a little confused. The last copy gives me an "overlapping array copy".
> Both arrays have a length of 4. Is it that I cannot copy from one
> dynamic array to another (even if the same size)?
It means you are trying to copy from the same memory you are copying to -
your arrays reference the same memory.
--
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
More information about the Digitalmars-d
mailing list