Sometimes I meet with the extended structure of the program header with a defined list of untyped parameters. I have never used such a structure and I still do not do it, because I have no idea how it is used. For example:
program Test(Foo, Bar, Input, Output);
begin
end.
What are the parameters of
Foo and
Bar and other? What type are they? How to use them?
I did not find any information in the documentation on this subject — the
16.1 Programs page does not contain any description, although the diagram shows a variation of the header with parameters. However, in the description is this fragment:
The program header is provided for backwards compatibility, and is ignored by the compiler.
If the program header is supported due to backward compatibility, then it should be possible to use these parameters, since the declaration of such a header does not cause a compilation error. But how?
I found an explanation of the purpose of these parameters in the manual from
IrieTools —
What are program parameters? — however, the examples given do not work correctly in the
FPC (with
{$OBJFPC} mode), although they compile without errors.
Does anyone know anything about this?