On Saturday 17 October 2009, Florian Klaempfl wrote: > Vinzent Höfler schrieb: > > Florian Klaempfl <flor...@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. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel