[fpc-devel] class abstract, class sealed implementation. please review.
Florian Klaempfl
florian at freepascal.org
Mon Oct 19 09:40:43 CEST 2009
Alexander Klenin schrieb:
> On Mon, Oct 19, 2009 at 17:55, Florian Klaempfl <florian at freepascal.org> wrote:
>> Without discussing details, I think a singleton is a good example where
>> sealed is useful.
>
> Why sealing a singleton is any more (or less) useful then sealing any
> other class?
As I said, it's as usefull as private/protected/strict private/strict
protected imo
> I use hierarchies of singletons quite often, and having them sealed would hurt.
>
You can still/should seal the class instanciated?
More information about the fpc-devel
mailing list