[fpc-devel] vargars vs array of const for WinAPI

Martin Frb lazarus at mfriebe.de
Fri Nov 10 11:30:53 CET 2023


On 09/11/2023 22:19, Marco van de Voort via fpc-devel wrote:
>
> Op 9-11-2023 om 20:47 schreef Martin Frb via fpc-devel:
>> I saw that in some places (I think gtk2) "varargs" is used for open 
>> arrray API calls.
>>
>> Any reason that is not adapted for Windows (overloaded)?
>
> It probably is newer (kylix). I'm not sure anyway what the problem is? 
> Why would varargs be better
>

Not a big deal... Just in case of porting stuff from (newer?) Delphi.

Probably only of interrest if both syntax can live as overloads.


More information about the fpc-devel mailing list