From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: Ada begginer's new problem.
Date: Fri, 29 Oct 2004 02:47:38 GMT
Date: 2004-10-29T02:47:38+00:00 [thread overview]
Message-ID: <ebigd.333206$D%.86619@attbi_s51> (raw)
In-Reply-To: clqa5t$pif$1@netnews.hinet.net
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2208 bytes --]
For this specific example, I would use:
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
execute_some_Statement_here5;
exit inner;
end if;
execute_some_Statement_here4;
end loop inner;
end loop outer;
BTW: I also use that other language you're probably refering to, and I
almost never use continue or goto in that language either.
Steve
(The Duck)
"bubble" <bubble@bubble.d2g.com> wrote in message
news:clqa5t$pif$1@netnews.hinet.net...
>
> 1. ��continue�� reserve word support?
> Ada has no ��continue�� word.
>
>
> 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,
> How should I do to remove "goto" ....?
>
>
>
> 2. type declare problem
>
> I know there are some choices can apply to my program.
> ( a ). Type stock_price is new float;
> ( b ). Type stock_price is digits 5;
> ( c ). Subtype stock_price is float;
>
> I know if I use ( c ) style. I can mix stock_price and float type to
> compute together.
>
> if we don't consider ( c ) style, only consider (a) and (b).
> which style is best?
>
>
> 3. possible assign a IEEE754 NaN value to float type variable?
>
> I use gwindows.database package to access atabase. It is great and very
easy
> to use.
> Unfortunately, my database exits some null value in a table.
> Many other languages will assign a NaN value to variable if it is null
value
> and float type.
> Can I assign a NaN to float variable, like other languages?
>
>
>
>
>
>
prev parent reply other threads:[~2004-10-29 2:47 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
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 [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox