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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab436e97ff76821f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.227.67 with SMTP id ry3mr23515361pbc.8.1341894298257; Mon, 09 Jul 2012 21:24:58 -0700 (PDT) Path: l9ni11236pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: gautier_niouzes@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Mon, 9 Jul 2012 21:24:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 62.203.238.118 Mime-Version: 1.0 X-Trace: posting.google.com 1341894298 21568 127.0.0.1 (10 Jul 2012 04:24:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 10 Jul 2012 04:24:58 +0000 (UTC) Cc: nma@12000.org In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=62.203.238.118; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-09T21:24:57-07:00 List-Id: Le mardi 10 juillet 2012 01:27:54 UTC+2, Nasser M. Abbasi a =E9crit=A0: > In Fortran, I can just write V**2, where V is a vector. In Ada, > I can't do that. Since ** is not defined on this array type > and this number type. >=20 > I would have to write a loop to iterate over V and do V(I)**2 on > each element. >=20 > This for me, is a step backward. This is how Fortran77 was. Interesting example... How often do you do need that, frankly ? The standard is there for... standard operations, like a * v (a is a number= ). There are always things you might feel it is missing. For instance the shortcuts "and then" and "or else" are missing in Fortran,= and to my opinion it is something more cumbersome than the lack of v**2 in= Ada. G.