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: <8gha10$pud$1@nnrp1.deja.com>#1/1 X-Deja-AN: 626790986 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> <0wOW4.27734$T41.665890@newsread1.prod.itd.earthlink.net> <8ggq7i$dad$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x54.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 19:20:17 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 <8ggq7i$dad$1@nnrp1.deja.com>, Ted Dennison wrote: > I figured that since Boolean'Size=1, then the check ought to > work I really can't imagine what you are thinking here. Boolean'Size being 1 affects precisely two things, the behavior of unchecked conversion, and the effect of component packing, nothing else at all. If it does something else, then you have a misunderstanding of some kind. > even > if assiging the value causes Constraint_Error. Assigning the value is of course erroneous, so it might cause CE indeed. > in this instance I was right. Not at all odd, because it simply means that the check checked for zero/non-zero which is certainly legal (and somewhat expected since it is more efficient than explicitly checking for equality with 1). > But if the comparison > itself is erronious, then this is not the way to do it. Indeed, since this behavior is not guaranteed. Does the compiler you are using support Fortran.Logical? It should if it claims to support Annex G, since Annex G expects interface to Fortran to be implemented if fortran is available. Sent via Deja.com http://www.deja.com/ Before you buy.