Hi there,

I just want to confirm one thing:

var
  a, b: array of Integer;
begin
  SetLength(a, 100);
  SetLength(b, 100);
  a := b;
end.

Now "a" will point to the same memory block as "b". Since dynamic arrays
are ref counted, I don't need to worry about the memory originally
allocated for "a", right?

Thanks,
Xiangrong
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to