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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to