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?

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to