[fpc-pascal] about "reference-counted" variables

Marco van de Voort marcov at stack.nl
Thu Mar 14 10:14:12 CET 2013


In our previous episode, Sven Barth said:
> > Is there a "complete" list of reference counted variables in FP?  e.g.
> dynamic arrays are ref-counted. but are variables allocated by New()
> ref-counted?
> 
> Dynamic arrays
> AnsiString
> UnicodeString (and on non Windows also WideString)
> COM style interfaces (the default interface type)

- All of these stored in olevariants. 

Also widestrings are not refcounted on the pascal level, but "managed".




More information about the fpc-pascal mailing list