[fpc-pascal] IntToStr implementation

Michael Van Canneyt michael at freepascal.org
Thu Jan 18 10:44:57 CET 2024



On Thu, 18 Jan 2024, Adriaan van Os via fpc-pascal wrote:

>
>> Also something which cannot be handled by 'standard' syntax.
>> (unless you wish to count generics and implicit specialization as "standard 
>> syntax")
>
> actual-parameter =  expression { ":" expression } .
> actual-parameter-list = "(" actual-parameter { "," actual-parameter } ")" .

The compiler obviously can parse it.

More accurately, I meant: you cannot write a function declaration to handle that syntax.

procedure Str(O : Integer { what to write here for the :N:M ??? }; var S);


Michael.


More information about the fpc-pascal mailing list