[fpc-devel] "inline" issue

J. Gareth Moreton gareth at moreton-family.com
Fri Apr 26 18:29:08 CEST 2019

That's good to know - thanks Sven.

This might be a silly question, but what error messages do you get if 
you put "inline" in a method's implementation etc? I'm wondering if I 
should develop a patch that ensures the conformance for inline matches 

For FPC, I would personally like to keep the ability to have "inline" in 
the implementation section and allow it to affect the function outside 
of the unit if only because it's beneficial from a cross-platform 
perspective (e.g. a number of functions in the System unit), while 
Delphi is fairly confined to Windows.

What are the administrators' thoughts?


On 26/04/2019 09:31, Sven Barth via fpc-devel wrote:
> Am 23.04.2019 um 16:33 schrieb Marco van de Voort:
>> Op 4/23/2019 om 4:31 PM schreef J. Gareth Moreton:
>>> I should ask actually... what's Delphi's support on 'inline' 
>>> appearing just in the implementation section?
>> My guess: only inline locally in the implemenation, iow the function 
>> is exported non-inline.
> I checked:
> - for methods in classes/records "inline" is only allowed for the 
> declaration, but not the implementation
> - for global routines inline can be either in the interface or in the 
> implementation; in case of the later the routine will only be inlined 
> inside the unit
> Regards,
> Sven
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

This email has been checked for viruses by Avast antivirus software.

More information about the fpc-devel mailing list