On Thu, 18 Aug 2011, dhkblas...@zeelandnet.nl wrote:

  ZeelandNet Webmail

I'm porting a piece of code from C++ and
there they use virtual inline methods. I tried it in FPC but it accepts
either virtual OR inline methods. Is this a bug, or a feature that I
don't understand enough about?

You can't inline virtual methods, since you don't know which method will be
called at runtime.

I suspect C++ simply ignores the directive in the case of a virtual method.

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

Reply via email to