[fpc-pascal] 3123 inherited not supported inside inline
Michael Van Canneyt
michael at freepascal.org
Sat Jun 24 16:50:25 CEST 2023
On Sat, 24 Jun 2023, Sven Barth via fpc-pascal wrote:
> Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org>
> schrieb am Sa., 24. Juni 2023, 14:18:
>> On Sat, 24 Jun 2023, Mattias Gaertner via fpc-pascal wrote:
>>> With development fpc I get a lot of messages like:
>>> fgl.pp(1112,1) Note: (3123) "inherited" not yet supported inside inline
>>> Since most users can't do anything about the fgl inline modifier, this
>>> message dilutes the output.
>>> IMO such a message should be off by default.
>>> What do you think?
>> The simplest solution is to remove the inline modifier, since it is clearly
>> superfluous for that routine.
>> According to Florian, inline should not be used to begin with, since the
>> compiler should be able to decide autonomously to inline a routine or not.
> I don't agree with Florian here cause the compiler detecting an inlineable
> routine that's declared in the interface section means an interface change
> after the interface section was already parsed and thus leading to the
> necessity to do recompilations which are already not working that well.
That's merely an implementation problem:
It does not mean that Florian's concept is flawed, it just means the
compiler is flawed.
In general, there is something to be said for the compiler determining what
the optimal way is to use a given routine. It simply should not need such a hint.
More information about the fpc-pascal