Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2013-11

question about inline

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

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?

Reply by email