[Home] [Prev] [Next] [Index]

6. Subprograms

6. Subprograms

1
Subprograms are one of the four forms of program unit, of which programs can be composed. The other forms are packages, task units, and generic units.

2
A subprogram is a program unit whose execution is invoked by a subprogram call. There are two forms of subprogram: procedures and functions. A procedure call is a statement; a function call is an expression and returns a value. The definition of a subprogram can be given in two parts: a subprogram declaration defining its calling conventions, and a subprogram body defining its execution.

3
References:

*
function 6.5

*
function call 6.4

*
generic unit 12

*
package 7

*
procedure 6.1

*
procedure call 6.4

*
subprogram body 6.3

*
subprogram call 6.4

*
subprogram declaration 6.1

*
task unit 9



[Home] [Prev] [Next] [Index]

documentation@rational.com
Copyright © 1993-2000, Rational Software Corporation. All rights reserved.