Re: [fpc-pascal] Nil'ing a dynamic string array...

2009-09-16 Thread Jonas Maebe
On 16 Sep 2009, at 13:21, Torsten Bonde Christiansen wrote: A short question: Will nil'ing a dynamic string array automatically decrease ref. count on all strings in the array or must this be done manually for the entire array? When a dynamic array is finalised (this happens when you assig

[fpc-pascal] Nil'ing a dynamic string array...

2009-09-16 Thread Torsten Bonde Christiansen
Hi. A short question: Will nil'ing a dynamic string array automatically decrease ref. count on all strings in the array or must this be done manually for the entire array? Eg.: var StrArray: array of string; StrArray := nil; vs. for i := 0 to High(strarray) do StrArray[i] := nil; Kind