Re: [U2] Deep and long indentations vs multiple exit points
MAJ Programming <majprogramming <at> comcast.net>
2007-12-01 04:59:17 GMT
I agree. On the few cases that I've run into RETURN TO, I've unprogrammed
Part of the purpose of RETURN TO is that MV doesn't have the POP command
whereby you can remove one of the GOSUB stack references and 'return to' the
prior GOSUB statement.
Being one who can use GOTO properly and can mix it with GOSUB and CALL for
readable code, I don't use RETURN TO.
My 1 cent
----- Original Message -----
From: "Susan Lynch" <slynch <at> fwdco.com>
To: <u2-users <at> listserver.u2ug.org>
Sent: Friday, November 30, 2007 11:38 AM
Subject: Re: [U2] Deep and long indentations vs multiple exit points
> Ray, at the risk of another 'holy war', please don't encourage the use of
> "RETURN TO" - particularly with large complex groups of programs with lots
> of subroutines, this can lead to "return stack overflow" scenarios that
> extremely hard to debug (having cleaned up a lot of these as the 'next
> programmer' on site, I cringed when I read that). I am not an anti-GOTO
> Nazi, if used sparingly and with good reason, but RETURN TO is, in my
> experience, a debugging nightmare waiting to happen.
> Susan M. Lynch
> F.W. Davison & Company, Inc.
> 10 Cordage Park Circle, Suite 200