On 19/10/2009, Alexander Klenin <kle...@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/ _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel