ahhh yes....and Avante/SB+ in their infinite wisdom...zippo gosubs in 
paragraphs...lets repeat ourselves unecessairly!

--
Debster

-------------- Original message -------------- 

> I love it when folks use a loop to add up vm's. And not the simple Sum 
> command. 
> Seen that a bit in the code I work in. 
> 
> Goto's never bother me. I came from a 4GL language called Ezgen, and it only 
> had 
> GO'tos. Had no such thing as gosub. The only way to do a gosub type is to 
> make 
> it a called program. We did that for routines that are used multiple times, 
> no 
> gosubs. I am getting out of the habit and only use go-tos' when I really feel 
> there is cause. Took a bit though :). 
> 
> Thanks, 
> 
> Marilyn A. Hilb 
> Value Part, Inc 
> Direct: 847-918-6099 
> Fax: 847-367-1892 
> [EMAIL PROTECTED] 
> www.valuepart.com 
> 
> -----Original Message----- 
> From: Peter D Olson [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 29, 2004 9:12 AM 
> To: [email protected] 
> Subject: RE: [U2] LOOP or GOTO on READNEXT 
> 
> the use of goto's or lack of shouldn't be a judge of sloppy coding . 
> sloppy coding is just sloppy coding. 
> remember one persons slop is another persons pudding :) 
> 
> example 1: 
> 
> y=0 
> loop 
> readnext z else y = 1 
> if y = 1 then exit 
> << do stuff >> 
> repeat 
> << more stuff >> 
> 
> vs 
> 
> example 2: 
> 
> 10: readnext claim_id else goto 20 
> << do stuff >> 
> goto 10 
> 20: << more stuff >> 
> 
> vs 
> 
> example 3 
> 
> loop readnext claim_id else exit 
> << do stuff >> 
> repeat 
> << more stuff >> 
> 
> 
> 
> LoopForEver 
> 
> This e-mail, including attachments, may include confidential and/or 
> proprietary information, and may be used only by the person or entity to 
> which it is addressed. If the reader of this e-mail is not the intended 
> recipient or his or her authorized agent, the reader is hereby notified 
> that any dissemination, distribution or copying of this e-mail is 
> prohibited. If you have received this e-mail in error, please notify the 
> sender by replying to this message and delete this e-mail immediately. 
> ------- 
> u2-users mailing list 
> [email protected] 
> To unsubscribe please visit http://listserver.u2ug.org/ 
> ------- 
> u2-users mailing list 
> [email protected] 
> To unsubscribe please visit http://listserver.u2ug.org/ 
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to