RAD Studio (Common)
ContentsIndex
PreviousUpNext
Procedures and Functions

This section describes the syntax of function and procedure declarations.

Name 
Description 
This topic covers the following items:
  • Declaring procedures and functions
  • Calling conventions
  • Forward and interface declarations
  • Declaration of external routines
  • Overloading procedures and functions
  • Local declarations and nested routines
 
This topic covers the following items:
  • Program control and routine parameters
  • Open array constructors
  • The inline directive
 
This topic covers the following items:
  • Parameter semantics
  • String parameters
  • Array parameters
  • Default parameters
 
As the name suggests, an anonymous method is a procedure or function that does not have a name associated with it. An anonymous method treats a block of code as an entity that can be assigned to a variable or used as a parameter to a method. In addition, an anonymous method can refer to variables and bind values to the variables in the context in which the method is defined. Anonymous methods can be defined and used with simple syntax. They are similar to the construct of closures defined in other languages. 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!