[fpc-pascal] destructor

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jan 24 16:33:50 CET 2017

On Tue, 24 Jan 2017 15:33:30 +0100
Maciej Izak <hnb.code at gmail.com> wrote:

> 2017-01-24 12:48 GMT+01:00 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> > fpc allows to declare a method with the destructor keyword, that is
> > not a real destructor, because it does not free the memory. For what is
> > this feature good for?
> >  
> with trunk works as expected (Foo does call FreeInstance).

Sorry, I mixed two destructors. Now I understand the Note: Class should have one destructor only.


More information about the fpc-pascal mailing list