Bart via fpc-devel <fpc-devel@lists.freepascal.org> schrieb am So., 23. Feb. 2020, 16:35:
> However, this will compile also: > > Function Second : Real; [Public name ’second’]; > begin > Second := 1; > end; > > So, what is the correct syntax? > Both are correct. The brackets allow a comma separated list of directives. However as Mattias wrote this syntax conflicts with attributes and thus is disabled if modeswitch PrefixedAttributes is enabled. Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel