On 17 Dec 2011, at 11:29, Bernd wrote:

> But I am still surprised that inline can be declared in either of the
> two sections ( I am not complaining, I am actually glad it works for
> my particular application). Is there any recommended style, is it bad
> practice to put it into the implementation?

Keeping the interface and implementation declarations the same is the best 
approach. Inline currently always changes the definition anyway (as far as the 
compiler is concerned) because the implementation becomes part of the 
definition once it's parsed. In the future, this may however change to prevent 
unexpected recompilations (http://bugs.freepascal.org/view.php?id=19673 ).


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

Reply via email to