[fpc-devel] class abstract, class sealed implementation. please review.
Graeme Geldenhuys
graemeg.lists at gmail.com
Mon Oct 19 10:01:09 CEST 2009
On 19/10/2009, Alexander Klenin <klenin at gmail.com> wrote:
>
>
> Why sealing a singleton is any more (or less) useful then sealing any
> other class?
> I use hierarchies of singletons quite often, and having them sealed would hurt.
>
Then simply don't use "sealed". Or use "sealed" on you last class
definitions that will actually be instantiated. I'm now thinking of
"sealed" like I do about "label..goto" and "+=" etc... It's available,
but doesn't mean you need or must use it.
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-devel
mailing list