On 16 Jan 2013, at 14:06, Ludo Brands wrote:
On 16/01/2013 13:17, Jonas Maebe wrote:
Are those calls before or after the method body appears in the
source code? The compiler cannot inline anything for which it
hasn't parsed the source code yet.
The method was implemented below the code that used it. Moving it up
solved it.
Actually the "inline;' in the declaration is not really used.
Removing it results in the same code. Perhaps a Hint or Warning when
inline is used in the declaration could avoid these mistakes.
Actually, the correct behaviour would be that the compiler requires
that it is only specified in the interface, or both in the interface
and in the implementation (I'm not sure yet what's most appropriate).
Inlining is always also enabled across units and hence should have to
be specified in the interface.
Jonas
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel