[fpc-devel]Proposal for audo-destructors

Jonas Maebe jonas at zeus.ugent.be
Sun Sep 12 16:02:10 CEST 2004


On 12 sep 2004, at 15:56, Marco van de Voort wrote:

>> I guess it's much alike to what happens with AnsiStrings.
>
> Ansistrings don't work with exceptions.

Sure they do, that's why you can turn them off using 
{$IMPLICITEXCEPTIONS OFF}. The same goes for class constructors afaik 
(which is why we turn them off in the compiler for speed reasons, but 
it can cause memory leaks in case something goes wrong).


Jonas





More information about the fpc-devel mailing list