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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6da15369b6c53c77 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: LLQ: -1 a valid boolean? Date: 2000/05/24 Message-ID: <0wOW4.27734$T41.665890@newsread1.prod.itd.earthlink.net>#1/1 X-Deja-AN: 626664523 Content-Transfer-Encoding: 7bit References: <39253CD0.C8DC893D@telepath.com> <8g8o3b$9l0$1@nnrp1.deja.com> <8ge39b$g45$1@nnrp1.deja.com> <8gebvj$20i$1@hobbes2.crc.com> <8gfe1m$enu$1@nnrp1.deja.com> X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 959165564 158.252.122.135 (Wed, 24 May 2000 03:52:44 PDT) Organization: Ada95 Press, Inc. X-MSMail-Priority: Normal MIME-Version: 1.0 NNTP-Posting-Date: Wed, 24 May 2000 03:52:44 PDT Newsgroups: comp.lang.ada Date: 2000-05-24T00:00:00+00:00 List-Id: Robert Dewar wrote in message news:8gfe1m$enu$1@nnrp1.deja.com... > In article <8gebvj$20i$1@hobbes2.crc.com>, > "David C. Hoos, Sr." wrote: > > return To_Bool_Ptr(Addr).all; > > > > might look a little less "silly" than > > > > if To_Bool_Ptr(Addr).all then > > return True; > > else > > return False; > > end if; > > But the return statement *obviously* would not work in this > context, since we know that the value is abnormal! We can > see why the if statement might in practice work, but for > sure the return statement will not work (be sure to read > the earlier messages in this thread, don't just examine > the above code at face value!) > I certainly stand corrected if there was some earlier definition of To_Bool_Ptr that would have enabled me to see that "we know that the value is abnormal!" I had searched for To_Bool_Ptr in my newsreader's comp.lang.ada messages, and found no prior reference, so I (foolishly) assumed that it was a function returning a not abnormal value.