[fpc-devel] question about inline

Martin lazarus at mfriebe.de
Fri Nov 1 15:00:43 CET 2013


At firs it makes sense, that a virtual method can not be inlined. So 
combining virtual/override with inline gives an error.

But (apart from missing implementation in the compiler), if a virtual 
method is called from an inherited class, using the "inherited" keyword, 
then (afaik) it is known at compile time which procedure is called (no 
look up via virtual method table). So in that case it could be inlined?

Or am I missing something?




More information about the fpc-devel mailing list