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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!necntc!cullvax!drw From: drw@cullvax.UUCP Newsgroups: comp.lang.ada Subject: Ranges with no values... Message-ID: <1107@cullvax.UUCP> Date: Fri, 17-Apr-87 11:06:42 EST Article-I.D.: cullvax.1107 Posted: Fri Apr 17 11:06:42 1987 Date-Received: Sat, 18-Apr-87 06:20:23 EST Organization: Cullinet Software, Inc., Westwood, MA List-Id: firth@sei.cmu.edu points out that a generic instantiation can create a variable whose type is a subrange containing *no* values. Thus, any assignment to that variable must raise a CONSTRAINT_ERROR. This leads to the interesting fact that one can have lower_bound <= variable && variable <= upper_bound be false! One would naively expect that this expression would be true even for uninitialized variables. What is the official word on uninitialized variables in Ada? Dale -- Dale Worley Cullinet Software UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw ARPA: cullvax!drw@eddie.mit.edu Un*x (a generic name for a class of OS's) != Unix (AT&T's brand of such)