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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.126.198 with SMTP id na6mr6829118obb.4.1407354193390; Wed, 06 Aug 2014 12:43:13 -0700 (PDT) X-Received: by 10.50.134.3 with SMTP id pg3mr134540igb.4.1407354193277; Wed, 06 Aug 2014 12:43:13 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!h18no15220686igc.0!news-out.google.com!px9ni584igc.0!nntp.google.com!h18no15220678igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 6 Aug 2014 12:43:12 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <03d102e1-1c2f-4056-82d5-3eaaaffbb0f1@googlegroups.com> <1407344009.27487.17.camel@pascal.home.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6f0e6013-6824-40fc-8b4f-fae3deb4bd99@googlegroups.com> Subject: Re: Array index overloading From: Adam Beneschan Injection-Date: Wed, 06 Aug 2014 19:43:13 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:188196 Date: 2014-08-06T12:43:12-07:00 List-Id: On Wednesday, August 6, 2014 10:38:46 AM UTC-7, marmaduk...@univ-amu.fr wro= te: > So V(2 .. 4) is possible, but is the equivalent V((2, 3, 4)) ? How about = V((9, 1, 2)) or V(((3, 3), (4, 5)))? It seems these cases fall outside the = intrinsic indexing support providing by Ada. V((2, 3, 4)) isn't legal Ada syntax. If you want to create a three-element= array taken from elements 9, 1, and 2 of V, you can write V(9) & V(1..2). = "&" is an array concatenation operator for 1-dimensional arrays (but it al= so accepts single values of the element type, such as V(9) in my example). -- Adam