I agree. On the few cases that I've run into RETURN TO, I've unprogrammed
it.

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
Mark Johnson
----- Original Message -----
From: "Susan Lynch" <[EMAIL PROTECTED]>
To: <u2-users@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
are
> 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
> Plymouth, MA 02360-7318
> (508) 747-7261
>
> ----- Original Message -----
> From: "Ray Wurlod" <[EMAIL PROTECTED]>
> To: <u2-users@listserver.u2ug.org>
> Sent: Thursday, November 29, 2007 5:11 PM
> Subject: Re: [U2] Deep and long indentations vs multiple exit points
>
>
> >A third possibility is to allow GOTO ERROREXIT (single exit point) - or
> >even RETURN TO ERROREXIT - in error handling code.  This substantially
> >reduces the number of levels of indentation required.
> > -------
> > u2-users mailing list
> > u2-users@listserver.u2ug.org
> > To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to