REXX certainly has the ability to terminate a specific loop from within a nested looped, but there are major lacuna. REXX doesn't have a goto, and trying to use signal as an alternative can be - interesting. OTOH, PL/I does a good job of cleaning up on block exit. Likewise Ada, although it doesn't seem to be very popular these days.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Paul Gilmartin <[email protected]> Sent: Saturday, January 13, 2018 1:18 PM To: [email protected] Subject: Re: curious: Popularity & use of C on z/OS. On Sat, 13 Jan 2018 22:53:26 +0800, David Crayford wrote: >On 13/01/2018 4:53 PM, Bernd Oppolzer wrote: > ... >I prefer implicit destruction of resources. It takes careful programming >in C to handle errors and free resources that usually requires lots of >code. I've always found the best way >to do that in C is a goto that branches to a cleanup block but oddly >that seems to be banned by most company coding standards. ... > "break" almost suffices. Alas, C, unlike Rexx, provides no way to exit a specific block. An alternative is a wrapper procedure: acqire resources call main body code cleanup -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
