[fpc-devel] Public modifier: brackets or not?
Bart
bartjunk64 at gmail.com
Sun Feb 23 16:35:28 CET 2020
Hi,
I'm a little confused.
From:
https://www.freepascal.org/docs-html/ref/refsu81.html
This page gives 2 examples.
Function Second : Real; [Public];
begin
Second := 1;
end;
and
Function Second : Real; Public name ’second’;
begin
Second := 1;
end;
In the first, Public is in brackets, in the second it is not.
However, this will compile also:
Function Second : Real; [Public name ’second’];
begin
Second := 1;
end;
So, what is the correct syntax?
--
Bart
More information about the fpc-devel
mailing list