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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada 202x and square brackets Date: Fri, 22 Feb 2019 12:53:01 +0100 Organization: Adalog Message-ID: References: <54a5873a-57aa-40c6-8af4-a6f908d53593@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 22 Feb 2019 11:52:59 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="7843031666a1a589a8c4f01a55aea8ad"; logging-data="10111"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Rv8PRe4pzoT8blq3NPF86" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 Cancel-Lock: sha1:H4IPd8M0l1cmt9VBdGp3xLaliWI= In-Reply-To: Content-Language: fr Openpgp: preference=signencrypt Xref: reader01.eternal-september.org comp.lang.ada:55628 Date: 2019-02-22T12:53:01+01:00 List-Id: Le 22/02/2019 à 11:34, AdaMagica a écrit : > So we can now mix () and [] at will? > > ([1,2,3], (7,8,9)) for a two-dim. array. > > [1,2,3] & (7,8,9) for concatenation. > > At least (a,b,c] is not allowed. > > I'd say a rule to not mix them in an expression is due. > There are cases where you want to mix for clarity: ([1,2], [3,4]) So what would your rule be? -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr