PL/I has the data types label constant and label variable and of
course permits them to be passed as arguments.  (The PL/I mapping of
{formal parameter, actual parameter} is  {parameter, argument}.)  I
use such a label in, for example, a routine that searches a binary
tree recursively  With success, however defined, control is returned
from the block/recursive invocation in which it occurs directly to the
instance of the label in the block from which the search entry was
first invoked, the stack being cleaned appropriately.

John Gilmore, Ashland, MA 01721 - USA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to