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, MSGID_RANDY 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: Robert Dewar Subject: Re: LLQ: -1 a valid boolean? Date: 2000/05/24 Message-ID: <8gfe1m$enu$1@nnrp1.deja.com>#1/1 X-Deja-AN: 626447956 References: <39253CD0.C8DC893D@telepath.com> <8g8o3b$9l0$1@nnrp1.deja.com> <8ge39b$g45$1@nnrp1.deja.com> <8gebvj$20i$1@hobbes2.crc.com> X-Http-Proxy: 1.0 x58.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed May 24 02:16:33 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-05-24T00:00:00+00:00 List-Id: 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!) Sent via Deja.com http://www.deja.com/ Before you buy.