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

Vinzent Hoefler JeLlyFish.software at gmx.net
Sat Oct 17 14:00:43 CEST 2009


On Saturday 17 October 2009, Florian Klaempfl wrote:
> 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.

Well, yes. And from the programmer's PoV "inline" can be used as a 
restriction to prevent pointers to such functions. ;)


Vinzent.



More information about the fpc-devel mailing list