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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,103b407e8b68350b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-16 08:28:45 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Anybody in US using ADA ? One silly idea.. Date: 16 Jan 2003 11:13:38 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1042734365 27683 128.183.235.92 (16 Jan 2003 16:26:05 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 16 Jan 2003 16:26:05 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:33084 Date: 2003-01-16T16:26:05+00:00 List-Id: "Grein, Christoph" writes: > > Which is easily solved by saying: > > Lower : constant Integer := Read; > > Upper : constant Integer := Read; > > subtype S is Integer range Lower..Upper; > > > > (Fortunately, declarations *are* elaborated in order :-) > > which, by RM 3.3.1(7), is the same as > > Lower, Upper: constant Integer := Read; Which is an excellent example of why declaring multiple initialized variables in one statement is a horrible thing to do. I'd have to check the manual to see if Read is called once or twice for this; please never do it! -- -- Stephe