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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ab436e97ff76821f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.138.146 with SMTP id a18mr1336979qau.6.1343313598204; Thu, 26 Jul 2012 07:39:58 -0700 (PDT) Received: by 10.66.85.231 with SMTP id k7mr1788767paz.38.1343313507416; Thu, 26 Jul 2012 07:38:27 -0700 (PDT) Path: a15ni113198934qag.0!nntp.google.com!q21no1094605qas.0!news-out.google.com!b9ni64828449pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.11.MISMATCH!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!news.mixmin.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Does Ada need elemental functions to make it suitable for scientific work? Date: Fri, 20 Jul 2012 14:49:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <67cad14d-c673-4a17-857f-4a132d989b9c@googlegroups.com> References: <18c77859-480c-41f5-bb1c-df7ad067f4f3@googlegroups.com> <637de084-0e71-4077-a1c5-fc4200cad3cf@googlegroups.com> <1wqz1wr8wto96.1fwpyip6ct1z9.dlg@40tude.net> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 X-Trace: posting.google.com 1342820982 8933 127.0.0.1 (20 Jul 2012 21:49:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 20 Jul 2012 21:49:42 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-Received-Bytes: 2293 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-20T14:49:42-07:00 List-Id: On Thursday, July 19, 2012 6:56:20 PM UTC-7, Randy Brukardt wrote: >=20 > For instance, there has been a long controversy about using unary "+" as = a=20 > short-hand conversion operator. That was its original intent It was? Interesting. I thought it was just there for "completeness" and b= ecause other languages did the same thing--specifically, I think Pascal and= Algol have unary *non-overloadable* "+" operators that don't really serve = any purpose except for mathematical types to put into their alternating Tay= lor series computations or something: if mod(N,2) =3D 0 then Term :=3D +(X**2)/Factorial(N) else Term :=3D -(X**2)/Factorial(N); But my memory about those other languages could be wrong. Anyway, if overl= oading was the reason unary "+" was kept in Ada 83, that's an interesting f= act I wouldn't have guessed.=20 -- Adam