[fpc-pascal] Virtual inline methods

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Aug 18 17:18:41 CEST 2011



On Thu, 18 Aug 2011, dhkblaszyk at 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.



More information about the fpc-pascal mailing list