FINISH Statement

FINISH <module-name> ;

The FINISH statement signals the end of a module and the end of module definition mode. Optionally, the FINISH statement can take the module name as its argument. See the description of the START statement and consult Chapter 6 for further information about defining modules.

Some examples follow:

start myAdd(a,b);
   return (a+b); 
finish;

start mySubtract(a,b);
   return (a-b); 
finish mySubtract;

r = myAdd(5, 3);
s = mySubtract(5, 3);
print r s;

Figure 23.120: Results of Calling Modules

r s
8 2