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,2507b6d982782e45 X-Google-Attributes: gid103376,public From: kst@sd.aonix.com (Keith Thompson) Subject: Re: [Q] Problem with Array Concatenation? Date: 1997/07/13 Message-ID: #1/1 X-Deja-AN: 256719244 Sender: news@thomsoft.com (USENET News Admin @flash) X-Nntp-Posting-Host: pulsar References: Organization: Aonix, San Diego, CA, USA Newsgroups: comp.lang.ada Originator: kst@pulsar Date: 1997-07-13T00:00:00+00:00 List-Id: In stt@houdini.camb.inmet.com (Tucker Taft) writes: > Matthew Heaney (mheaney@ni.net) wrote: > : ... > : There's another way to make the fix, by manually sliding the initial substring: > > : declare > : type AT is array (Positive range 1 .. 100) of Integer; > > : SA : AT; > : DA : AT; > : subtype Slided is AT (1 .. 50); > > Now *this* is not legal Ada (83 or 95). You can't re-constrain > a constrained array (sub)type. If Ada 95 hadn't restricted the 'Base attribute to apply only to scalar subtypes, you could declare: subtype Slided is AT'Base (1 .. 50); -- or Slid, if you prefer (Some, but not all, Ada 95 compilers do support this.) Of course, there's also the minor problem that AT is a reserved word. -- Keith Thompson (The_Other_Keith) kst@sd.aonix.com <*> TeleSo^H^H^H^H^H^H Alsy^H^H^H^H Thomson Softw^H^H^H^H^H^H^H^H^H^H^H^H^H Aonix 5040 Shoreham Place, San Diego, CA, USA, 92122-5989 "Zathras warn Zathras, but Zathras never listen to Zathras." -- Zathras