2011/8/18  <dhkblas...@zeelandnet.nl>:
>
> 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?

At first I didn't understand how a virtual function can be inlined (in
C++), but after reading
http://msdn.microsoft.com/en-us/magazine/cc301407.aspx I understand.

I think fpc is not optimizing so much that it can detect when a
virtual function can be inlined. But maybe WPO
(http://wiki.freepascal.org/Whole_Program_Optimization) can do
something similar.

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

Reply via email to