[fpc-pascal] inline and other modifiers
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Dec 17 11:35:54 CET 2011
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
More information about the fpc-pascal
mailing list