From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4e34524ff567b8b1 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: GOTO in ADA Date: 1999/08/22 Message-ID: <7ppdhe$j1h$1@nnrp1.deja.com>#1/1 X-Deja-AN: 515846431 References: <6A08418D0DAA75E0.E4D1854DB5A80C85.B4B03E27B8C9304C@lp.airnews.net> <37BC2E9E.4D4EF69C@decada.zko.dec.com> X-Http-Proxy: 1.0 x34.deja.com:80 (Squid/1.1.22) for client 166.72.71.31 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Sun Aug 22 17:54:58 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-08-22T00:00:00+00:00 List-Id: In article <37BC2E9E.4D4EF69C@decada.zko.dec.com>, "Michael F. Yoder" wrote: > If you are writing a dialog which asks many questions, and want to > re-ask one (e.g. because of an error), "goto Ask_Password;" is IMO > clearer than writing "loop... exit when Password_OK; end loop;" or > whatever. This is particularly so in cases where a straightforward use > of loops would make them overlap, for example when the flow of control > looks like this: And now those who have not killed this thread (I am not among their number, it's certainly in my kill file now) will have to hope that this does not lead to yet another of those off-topic long and boring rants and raves about when gotos are or are not justified :-) Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.