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

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Sep 16 13:35:24 CEST 2009

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 assign nil to  
it), its contents are also finalised. So no, you don't have to  
manually finalise the individual strings in the array.


More information about the fpc-pascal mailing list