[fpc-pascal] Automatic objects

Marco van de Voort marcov at stack.nl
Fri Aug 4 18:09:15 CEST 2006


> Is it right to assume they are automatically deallocated when they go 
> out of scope (e.g. no need to free them manually)?

The space of the object is cleaned. However if the object uses dyn memory,
you will have to call the destructor (destroy) to make the object cleanup.

In general it is considered a good custom to destroy them.



More information about the fpc-pascal mailing list