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,d57302f2954365e1 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: Question about base types Date: 1997/01/28 Message-ID: <32EE1434.3BB4@elca-matrix.ch>#1/1 X-Deja-AN: 212864837 references: content-type: text/plain; charset=us-ascii organization: ELCA Matrix SA mime-version: 1.0 reply-to: Mats.Weber@elca-matrix.ch newsgroups: comp.lang.ada x-mailer: Mozilla 3.01 (Macintosh; I; PPC) Date: 1997-01-28T00:00:00+00:00 List-Id: > > If I declare an integer type, say > > > type T is range 1 .. 10; > > > Then I think that according to the Ada model this means I'm declaring some > > unnamed type, but whose first named subtype is T: > > > type is System.Min_Int .. System.Max_Int; > > subtype T is range 1 .. 10; > > > Do I have this correct? > > No. The range of the anonomous type must be at least -15..15, but > the actual range is implementation dependent. I think this should be -10 .. 10. Nothing in the RM says it must be a power of two minus one.