comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Ada begginer's new problem.
Date: 28 Oct 2004 10:44:21 +0200
Date: 2004-10-28T07:21:41+00:00	[thread overview]
Message-ID: <rlsk6tbb5ay.fsf@jacob.crs4.it> (raw)
In-Reply-To: clqa5t$pif$1@netnews.hinet.net

"bubble" <bubble@bubble.d2g.com> writes:

[ please use relevant subject lines ]

>    outer:loop
>          execute_some_Statement_here0;
>       EXIT when some_condition;
>          execute_some_Statement_here1;
>       inner: loop
>          execute_some_Statement_here3;
>          IF some_condition_is_true THEN
>             goto outerContinueLabel;
>          END IF;
>          execute_some_Statement_here4;
>       end loop inner;
>          execute_some_Statement_here5;
>       <<outerContinueLabel>>
>          null;
>    end loop outer;
> 
> It's hard to read,

Yes. :-(

 Outer:
   loop
      Execute_Some_Statement_Here0;
      exit Outer when Some_Condition;
      Execute_Some_Statement_Here1;

    Inner:
      loop
         Execute_Some_Statement_Here3;
         exit Inner when Some_Condition_Is_True;
         Execute_Some_Statement_Here4;
      end loop Inner;

      if not Some_Condition_Is_True then
         Execute_Some_Statement_Here5;
      end if;
   end loop Outer;

Greetings,

Jacob
-- 
"There is a slight error in the exponent" - quantum vaacum
 mass is 10^35 times the total dark matter mass



  reply	other threads:[~2004-10-28  8:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-28  8:11 Ada begginer's new problem bubble
2004-10-28  8:44 ` Jacob Sparre Andersen [this message]
2004-10-28 10:38 ` Larry Kilgallen
2004-10-28 11:26 ` Eric Jacoboni
2004-10-28 20:19 ` Nick Roberts
2004-10-29  2:58   ` bubble
2004-10-29  2:47 ` Steve
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox