#: 16435 S12/OS9/68000 (OSK)
14-Sep-92 06:55:56
Sb: #16430-#recursive functions
Fm: Pete Lyall 76703,4230
To: Jim Sutemeier 70673,1754 (X)
Jim -
Each 'instance' of 'func()' gets copies of all of the code within func(),
therefore upon execution secondfunc() and func(), program control will return
to whichever copy of func() called it, and execute the rest of the code in
_that_ copy of func(), before returning to its caller, which MAY be another
copy of func(). If that's the case, the calling copy of func()'s remaining code
will then be executed upon return.
Also - don't use exit() unless you want to leave the program. You could use
return(), if the situation called for it....
Pete
There is 1 Reply.
|