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

Torsten Bonde Christiansen tc at epidata.dk
Wed Sep 16 13:21:20 CEST 2009


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 regards,
Torsten Bonde Christiansen.



More information about the fpc-pascal mailing list