Parameter list
<Back to Last Page> <Full Glossary>
Definition:
A parameter list is a sequence of parameter declarations separated by semicolons and enclosed in parentheses. Each declaration is a comma-delimited series of parameter names, followed in most cases by a colon and a type identifier, and in some cases by the = symbol and a default value. Parameter names must be valid identifiers. Any declaration can be preceded by one of the reserved words var, const, and out
Also Known As:
argument list
Examples:
function SomefName(paramlist):return type;
where param list could be:
(X, Y: Real)
(var S: string; X: Integer)
(HWnd: Integer; Text, Caption: PChar; Flags: Integer)
(const P; year: Integer = 2001)
Related Resources:
Functions and Procedures
Creating user defined subroutines in Object Pascal.
Routines in Delphi: Beyond the Basics
Extending Object Pascal functions and procedures with default parameters and method overloading.
<Back to Last Page> <Full Glossary>