[fpc-devel] Modifiers...
Sven Barth
pascaldragon at googlemail.com
Mon Jan 29 09:49:47 CET 2024
Am 24.01.2024 um 23:29 schrieb Martin Frb via fpc-devel:
> https://www.freepascal.org/docs-html/ref/refsu3.html
>
> Is this list complete/correct?
>
> 1)
> It lists bitpacked, but
> program foo; var bitpacked: integer; begin end;
> gives an error.
>
> I thought modifiers can be used as var names?
"bitpacked" is not a modifier, but a keyword.
>
> 2)
> Is there, or has there once been?
> (found in the synedit highlighter)
> final
As Michael wrote this can be used with methods to stop the virtual
inheritance chain.
On the JVM platform it can also be used with fields which can then only
be initialized inside the constructor.
> automated
As Michael wrote, not supported by FPC, but by Delphi.
> optional
The "optional" keyword is in the context of Objective Pascal, just like
"required" is (in contrast to "requires" which is used inside "package"
files).
Regards,
Sven
More information about the fpc-devel
mailing list