From: "bubble" <bubble@bubble.d2g.com>
Subject: Ada begginer's new problem.
Date: Thu, 28 Oct 2004 16:11:42 +0800
Date: 2004-10-28T16:11:42+08:00 [thread overview]
Message-ID: <clqa5t$pif$1@netnews.hinet.net> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]
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?
next reply other threads:[~2004-10-28 8:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-28 8:11 bubble [this message]
2004-10-28 8:44 ` Ada begginer's new problem 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox