On Feb 3, 2011, at 11:18, John Ehrman wrote: > There's no reason your SP macro code can't include a jump to an error > handler when an error occurs. > We haven't licensed HLASM TK. Do the SPMs have a construct to LEAVE an outer loop from within an inner loop? This might not properly belong in even an extension of assembler language. Does ENDDO even perform any termination cleanup? If not a branch is equivalent to LEAVE.
> Donald Knuth once wrote a scholarly article called "Structured Programming > with GOTO Statements" where he showed that attempts to be "purely > structured" were often more obscure than using a GOTO when it was simplest. > There's also an easy proof (perhaps from the same source?) that any spaghetti code can be rewritten as a DO FOREVER containing a SELECT where each branch ends by setting the label to be used by the SELECT in the next iteration. Uses only sanctioned "structured" constructs; still spaghetti. -- gil
