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,ad4aec717fd8556e X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: 'size attribute inheritance Date: 1997/08/17 Message-ID: #1/1 X-Deja-AN: 265704028 References: <33ECF679.4B5D@lmco.com> <33F670EF.4F65@flash.net> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-08-17T00:00:00+00:00 List-Id: Ken said <> Be careful! First, Normalize_Scalars does not guarantee that the variable will be initialized with an out of range value (and indeed for a type like Integer, it is almost certain that there is no such thing as an out of range value). Second, the compiler is in many cases allowed to assume that a variable is in range, so it may not always do a check where you expect it. In particular, for a simple assignment, where the subtype is the same on both sides, there is no requirement to perform a check, since assigning the out of range value is an acceptable behavior for the error of referencing an uninitialized variable. Still, you are generally right, NS will approximate a check for uninitialized variables in practice.