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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,83d7c4caadb45100 X-Google-Attributes: gid103376,public From: George Haddad Subject: Re: DECAda/VMS - calling GETJPI Date: 1996/06/06 Message-ID: <31B725E7.8A8@mmac.is.lmsc.lockheed.com>#1/1 X-Deja-AN: 158823164 content-type: text/plain; charset=us-ascii organization: Lockheed Martin M & S, Sunnyvale, CA mime-version: 1.0 reply-to: ghaddad@lmsc.lockheed.com newsgroups: comp.lang.ada x-mailer: Mozilla 2.01 (Macintosh; I; PPC) Date: 1996-06-06T00:00:00+00:00 List-Id: Robert Dewar wrote: > Consider the following example: > type x is mod 10; > subtype y is x range 0 .. 5; [snip] > Actually to be strict, the constraint error is raised by the > conversion because -1 is not in the set of values for > modular type x (0 .. 10). At last! An opportunity to nitpick one of the comp.lang.ada greats. (Or embarrass myself horribly -- you be the judge. :-)) I would certainly hope that the allowable range of values for type x is 0..9. ;-) Otherwise, what about this: V1 : constant x := 0; V2 : constant x := 10; if (V1 = V2) then Text_IO.Put_Line("Zero equals Ten."); end if; -- I found these opinions on my doorstep, would you please give them a good home?