[fpc-devel] class abstract, class sealed implementation. please review.

Florian Klaempfl florian at freepascal.org
Sat Oct 17 11:40:11 CEST 2009


Graeme Geldenhuys schrieb:
> 2009/10/16 Paul Ishenin <webpirat at mail.ru>:
>> Sealed class is a class which can't be derived by another class. This one is
>> fully supported by delphi.
> 
> Would you mind explaining this - I never saw the benefit of a sealed
> class. 

>From a compiler developers point of view, it makes optimization easier
under certain cases (e.g. virtual method calls). It's the same as with
inline: inline has no advantage except that it is a hint to the compiler
how the code can be optimized.



More information about the fpc-devel mailing list