Article View: comp.lang.misc
Article #5431Re: Loops
From: Rahul Dhesi
Date: Tue, 05 Apr 1988 04:08
Date: Tue, 05 Apr 1988 04:08
14 lines
1108 bytes
1108 bytes
In article <2797@mmintl.UUCP> franka@mmintl.UUCP (Frank Adams) writes:
>In a structured program, there
>should be a (relatively) simple statement of the state of the computation
>when you exit from the loop.
The Zahn control structure, described in the literature, accomplishes
this. But the Ada designers explicitly discussed this and decided not
to include it because the same can be done with the use of a variable
to hold the exit status, the general exit statement in a loop then
becoming:
if condition1 then exit_status:=NORMAL_EXIT; exit; end if;
--
Rahul Dhesi UUCP: <backbones>!{iuvax,pur-ee,uunet}!bsu-cs!dhesi
Technical Details
Message-ID:
<2562@bsu-cs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!think!ames!ncar!oddjob!uwvax!rutgers!iuvax!bsu-cs!dhesiReferences:
<2827@enea.se> <1557@pasteur.Berkeley.Edu> <2773@mmintl.UUCP> <294@tmsoft.UUCP> <2797@mmintl.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!think!ames!ncar!oddjob!uwvax!rutgers!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.misc Subject: Re: Loops Message-ID: <2562@bsu-cs.UUCP> Date: 5 Apr 88 04:08:38 GMT References: <2827@enea.se> <1557@pasteur.Berkeley.Edu> <2773@mmintl.UUCP> <294@tmsoft.UUCP> <2797@mmintl.UUCP> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 14