[fpc-pascal] parameter list declaration

Michael Van Canneyt michael at freepascal.org
Sat Apr 1 09:03:29 CEST 2017

On Sat, 1 Apr 2017, Mr Bee via fpc-pascal wrote:

> Hi all, I'm looking for official reference for function/procedure
> parameter list declaration in Pascal.  I found
> this: http://www.freepascal.org/docs-html/ref/refse91.html but I think
> it's not really clear, especially for newbie.  For example, when exactly
> we need to use/put ; (semicolon) instead of , (comma) in parameter list.

You can always use a ;

When parameters are of the same type, you can use ,

> Compare that to official document from Delphi
> here: http://docwiki.embarcadero.com/RADStudio/Berlin/en/Parameters_(Delphi) which
> I think a bit more clear.

I don't see how you can compare the 2. There is no diagram on that page.

is the "official" reference. 
It doesn't get more official than that.


More information about the fpc-pascal mailing list