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=0.2 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, XPRIO,XPRIO_SHORT_SUBJ autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9d03247c8459fa7b,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!2f655409!not-for-mail From: "Larry Luther" Newsgroups: comp.lang.ada Subject: Newbie Q X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: NNTP-Posting-Host: 209.189.124.238 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr21.news.prodigy.com 1127178673 ST000 209.189.124.238 (Mon, 19 Sep 2005 21:11:13 EDT) NNTP-Posting-Date: Mon, 19 Sep 2005 21:11:13 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: TSU[@I_AO@UOFP\[ZBINO_TDFZ\@@FXLM@TDOCQDJ@_@FNTCCNSKQFCY@TXDX_WHSVB]ZEJLSNY\^J[CUVSA_QLFC^RQHUPH[P[NRWCCMLSNPOD_ESALHUK@TDFUZHBLJ\XGKL^NXA\EVHSP[D_C^B_^JCX^W]CHBAX]POG@SSAZQ\LE[DCNMUPG_VSC@VJM Date: Tue, 20 Sep 2005 01:11:13 GMT Xref: g2news1.google.com comp.lang.ada:4930 Date: 2005-09-20T01:11:13+00:00 List-Id: I saw the following example in "Ada Programming" Wiki book: if Temperature >= Degrees'(40.0) then Put_Line ("It's extremely hot"); elsif Temperature in Degrees'(30.0 .. 39.0) then Put_Line ("It's hot"); elsif Temperature in Degrees'(20.0 .. 29.0) then Put_Line ("It's warm"); elsif Temperature in Degrees'(10.0 .. 19.0) then Put_Line ("It's cool"); elsif temperature in Degrees'(0.0 .. 9.0) then Put_Line ("It's cold"); else Put_Line ("It's freezing"); end if; What happens at 29.5 degrees? I'm assuming that "Temperature in Degrees'(20.0 .. 29.0)" will test the interval Temperature >= 20.0 through Temperature <= 29.0. So temperatures between 29.0 and 30.0 will be considered "freezing". Larry