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.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY
autolearn=ham autolearn_force=no version=3.4.4
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,74c99be23927e3eb
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2002-06-08 01:11:16 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!opentransit.net!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: control breaks in ada?
Date: 08 Jun 2002 10:11:17 +0200
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References:
NNTP-Posting-Host: avelizy-103-1-5-77.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: wanadoo.fr 1023523875 26096 80.13.115.77 (8 Jun 2002 08:11:15 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 8 Jun 2002 08:11:15 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90
Xref: archiver1.google.com comp.lang.ada:25510
Date: 2002-06-08T08:11:15+00:00
List-Id:
Kilgallen@SpamCop.net (Larry Kilgallen) writes:
> In article , "tr4ck" writes:
> > Hi, can someone give me an example of control breaks in ada?
>
> Sure, just tell us what a "control break" is.
Maybe the break/continue with C. In this case:
while (1) {
if (xyz) break;
}
is in Ada:
loop
exit when xyz;
end loop;
For readability (if the loop is big) you can name this loop:
Search_Name : loop
...
exit Search_Name when xyz;
...
end loop Search_Name;
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595