[fpc-devel] Breaking change in FPC 2.6.1

Alexander Klenin klenin at gmail.com
Mon Apr 30 05:53:49 CEST 2012


On Fri, Apr 27, 2012 at 20:28, Marco van de Voort <marcov at stack.nl> wrote:
> Calling a virtual(!) method when a bookmark is no longer needed allows to do
> other things too, like releasing something with db handles, and allows
> descendents of TDataset to do such things.

Did you consider declaring TBookmark an interface?
This way you may get the benefits of both worlds --
automatic memory management plus an ability to hook
into a deallocation.


-- 
Alexander S. Klenin



More information about the fpc-devel mailing list