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

Florian Klaempfl florian at freepascal.org
Sat Oct 17 13:37:51 CEST 2009


Vinzent Höfler schrieb:
> Florian Klaempfl <florian at freepascal.org>:
> 
>> 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.
> 
> I really doubt that "sealed" is just meant as hint to the compiler that the VMT remains static or something.

It might be more but at least from compiler developer's point of view it
can be used for this.



More information about the fpc-devel mailing list