Language Reference


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 25.137: Results of Calling Modules

r s
8 2