I occasionally have to write something recursive.  Every single time, I have to 
stare at the screen for quite a while to figure out how to do it.  For some 
reason the part where I decide where to enter the recursion, and where in the 
loop to exit it, cause me no end of uncertainty.  I don't know why it's so 
difficult for me.  I assume it's not everyone who has that problem.

But sometimes nothing but recursion will do.

---
Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313

/* Dad and Mom can share the driving chores, as follows: Dad will start out at 
the wheel, then Mom will take over as soon as Dad dies. Because Dad is a male, 
and males are very reluctant to relinquish control over vehicles. The real 
reason the captain of the Titanic went down with the ship was his fear that, at 
the last minute, his wife would take the helm.  -Dave Barry on family 
vacations, 2003 */

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Wayne Bickerdike
Sent: Wednesday, April 8, 2020 15:42

My first and only recursive program was written in PL1. To avoid a GOTO.
Wrong! S80A abend. Would probably work today with copious amounts of
memory.

--- On Thu, Apr 9, 2020, 02:40 Frank Swarbrick wrote:
> And yes, recursion is possible, but you must specify "IS RECURSIVE" on the
> PROGRAM-ID.  Not sure what having nested programs has to do with that,
> though.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to