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!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!news.uni-stuttgart.de!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!medsec1.medien.uni-weimar.de!slucks From: Stefan.Lucks@uni-weimar.de Newsgroups: comp.lang.ada Subject: Re: improvements for multidimensional arrays ? Date: Thu, 17 May 2018 10:06:11 +0200 Organization: Bauhaus-Universitaet Weimar Message-ID: References: NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="915268786-2125928407-1526544371=:5177" X-Trace: pinkpiglet.scc.uni-weimar.de 1526544372 19083 141.54.178.228 (17 May 2018 08:06:12 GMT) X-Complaints-To: news@pinkpiglet.scc.uni-weimar.de NNTP-Posting-Date: Thu, 17 May 2018 08:06:12 +0000 (UTC) X-X-Sender: slucks@hexenstieg In-Reply-To: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) Xref: reader02.eternal-september.org comp.lang.ada:52381 Date: 2018-05-17T10:06:11+02:00 List-Id: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --915268786-2125928407-1526544371=:5177 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 16 May 2018, Mehdi Saada wrote: > Is it likely or not that we see some improvements over multidimensional a= rrays ? Why? > But it should be allowed to provide a proper initial value at initializat= ion. > Imagine a matrix whose first row and first column's elements are all at z= ero. What is wrong with the code below? type Matrix is array (Natural range <>, Natural range <>) of Natural; M1: Matrix(1 .. 10, 1 .. 5) :=3D (1 =3D> (others =3D> 0), -- first row 0 others =3D> (1 =3D> 0, others =3D> 1) -- first column in other rows = 0, =09 -- all other entries 1 ); M2: Matrix(1 .. 10, 1 .. 5) :=3D (1 =3D> (others =3D> 0), -- first row 0 others =3D> (1 =3D> 0, others =3D> <>) -- first column in other rows= 0, =09 -- all other entries left undefined ); -------- I love the taste of Cryptanalysis in the morning! -------= - www.uni-weimar.de/de/medien/professuren/mediensicherheit/people/stefan-luck= s ----Stefan.Lucks (at) uni-weimar.de, Bauhaus-Universit=C3=A4t Weimar, Germa= ny---- --915268786-2125928407-1526544371=:5177--