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,c1131ea1fcd630a X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: To Initialise or not Date: 1996/05/08 Message-ID: #1/1 X-Deja-AN: 153822202 references: <318508FE.204B@sanders.lockheed.com> <318E43A4.390E@lmtas.lmco.com> <31909E74.1E09@lmtas.lmco.com> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-05-08T00:00:00+00:00 List-Id: In article <31909E74.1E09@lmtas.lmco.com>, Ken Garlington wrote: >Robert A Duff wrote: >> >> Well, sort of. The use of an invalid representation will not >> necessarily be detected in all cases. > >In what case would 'Valid not detect an invalid representation? Heh? I said, "all cases". The 'Valid attribute is *one* case. I meant, pragma Normalize_Scalars will not cause every read of an uninitialized scalar to be detected. Am I confused? I thought we were talking about pragma Normalize_Scalars, not the 'Valid attribute. >For scalar X, X'Valid "yields True if and only if the object >denoted by X is normal and has a valid representation." Yes. But be careful -- anything that's erroneous will negate that rule. >Certainly, if there is _no_ invalid representation of X, then >'Valid won't detect any. However, you should be able to use 'Size >to force the existence of an invalid representation for any >scalar, right? No, I don't think so. An implementation might allow it, but where does the RM require an implementation to accept such a Size clause? (Note: The ARG is considering some AI's related to this issues, notably AI's 51 and 109, in case you care to comment.) - Bob