[fpc-pascal] dynamic array reference count

Michael Schnell mschnell at lumino.de
Mon Mar 17 10:21:03 CET 2014


On 03/15/2014 03:20 PM, Jürgen Hestermann wrote:
>
>
> I added the last sentence which may help you to avoid false assumptions:
>
Well done !

OTHO, IMHO this perfectly documents that the decision (supposedly by 
Borland) ) to do it this way is a very nasty and the conceptional 
difference between Strings and dynamic arrays, that both use reference 
counting and "SetLength" is not really easy to be communicated to the 
users code programmers. (Even though it might be possible to do nice 
tricks with them when you exactly know what you are doing.)

-Michael




More information about the fpc-pascal mailing list