On Fri, Apr 27, 2012 at 20:28, Marco van de Voort <mar...@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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to