[fpc-pascal] Virtual inline methods
Darius Blaszyk
dhkblaszyk at zeelandnet.nl
Thu Aug 18 18:13:10 CEST 2011
Thanks all for the information. I will have a read to understand the backgrounds better.
Darius
On Aug 18, 2011, at 5:16 PM, Vincent Snijders wrote:
> 2011/8/18 <dhkblaszyk at 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 at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list