Originale-mail to me for new edition

 

Procedure and function calls

 

A procedure call consists of the name of a procedure (with or without qualifiers), followed by a parameter list (if required). Examples include

PrintHeading;

Transpose(A, N, M);

Find(Smith, William);

Writeln('Hello world!');

DoSomething();

Unit1.SomeProcedure;

TMyObject.SomeMethod(X,Y);

With extended syntax enabled ({$X+}), function calls, like calls to procedures, can be treated as statements in their own right:

MyFunction(X);

When you use a function call in this way, its return value is discarded.

For more information about procedures and functions, see Procedures and functions.

 

Topic groups

 

See also

Simple statements

 

 

译文

 

过程和函数调用

 

过程调用由过程名(含有或不含限定词)和随后的参数列表(如果必需)组成。例如:

PrintHeading;

Transpose(A, N, M);

Find(Smith, William);

Writeln('Hello world!');

DoSomething();

Unit1.SomeProcedure;

TMyObject.SomeMethod(X,Y);

扩展语法有效({$X+}编译指示)时,函数调用就象过程调用,可以被看作其自身右边的语句,如

MyFunction(X);

当以这种方式调用函数时,函数返回的值被丢弃。

关于过程和函数的更多信息,见过程和函数

 

主题组

 

相关主题

简单语句