[fpc-devel] C-block reference syntax (blocker for 3.2)
Ryan Joseph
genericptr at gmail.com
Tue Dec 10 22:29:34 CET 2019
> On Dec 10, 2019, at 11:38 AM, Sven Barth via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
>
> First of Object Pascal supports "array of const" which is safer due to a added type field for each entry.
>
From the users standpoint only real difference is the [] syntax and if the array of const is the last (or only) parameter the compiler could infer it right? i.e.
DoThis(firstParam, [1,2,3]);
doesn't really need the [] in this case since the last parameters would have to be an array of const.
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list