comp.lang.ada
 help / color / mirror / Atom feed
* Ada begginer's new problem.
@ 2004-10-28  8:11 bubble
  2004-10-28  8:44 ` Jacob Sparre Andersen
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: bubble @ 2004-10-28  8:11 UTC (permalink / 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?









^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-29  2:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox