From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT,XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bccad95d5436eaf8,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!solaris.cc.vt.edu!news.vt.edu!Spring.edu.tw!news.nctu.edu.tw!feeder.seed.net.tw!netnews!not-for-mail From: "bubble" Newsgroups: comp.lang.ada Subject: Ada begginer's new problem. Date: Thu, 28 Oct 2004 16:11:42 +0800 Organization: HiNetNews Message-ID: NNTP-Posting-Host: 211.21.128.195 X-Trace: netnews.hinet.net 1098951678 26191 211.21.128.195 (28 Oct 2004 08:21:18 GMT) X-Complaints-To: usenet@HiNetnews.hinet.net NNTP-Posting-Date: Thu, 28 Oct 2004 08:21:18 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:5782 Date: 2004-10-28T16:11:42+08:00 List-Id: 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; <> 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?