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: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: [Q] Problem with Array Concatenation? Date: 1997/07/11 Message-ID: #1/1 X-Deja-AN: 256225872 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1997-07-11T00:00:00+00:00 List-Id: 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. : begin : ... : DA := Slided (SA (51 .. 100)) & SA (1 .. 50); : end; : In Ada 83 the 2nd substring will be automatically slided. Only if you can convince the compiler to accept the declaration for "Slided" (sic). By the way, I prefer the word "slid" ;-). : - Matt : -------------------------------------------------------------------- : Matthew Heaney : Software Development Consultant : : (818) 985-1271 -- -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA