[fpc-pascal] Virtual inline methods
Jonas Maebe
jonas.maebe at elis.ugent.be
Thu Aug 18 17:16:37 CEST 2011
On 18 Aug 2011, at 17:08, <dhkblaszyk at zeelandnet.nl> <dhkblaszyk at zeelandnet.nl
> wrote:
> 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?
FPC cannot inline virtual methods under any circumstances (even though
in some special cases it would be theoretically possible, such as with
final virtual methods or when using whole-program optimization), so it
doesn't make sense to allow declaring them.
Jonas
More information about the fpc-pascal
mailing list