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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e859f774bbb3dfb3 X-Google-Thread: 1094ba,40d8c5edfa36ea47 X-Google-Attributes: gid103376,gid1094ba,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!news.motzarella.org!motzarella.org!Colin_Paul_Gloster From: Colin Paul Gloster Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: another way to shoot yourself in the foot? Date: Fri, 11 Jul 2008 16:02:37 +0100 Organization: A noiseless patient Spider Message-ID: References: <54157920-377a-441b-9b0b-f0c4f9ddffec@f36g2000hsa.googlegroups.com> <54435596-5e7f-4686-a2b7-1e22d7c4b186@p25g2000hsf.googlegroups.com> <_wPbk.7600$L_.4566@flpi150.ffdc.sbc.com> <1ijtbxq.1t7i71w700eykN%nospam@see.signature> Reply-To: Colin Paul Gloster Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="21754734-8220-1215788557=:9212" X-Trace: feeder.motzarella.org U2FsdGVkX1+bHQykLOrZ1Ot7QIeU3QBYFl00CQXL+PFvu051ltVidsJMsWYbA/wLpK/o3Fcbxc3lZ0Tj1RXkz3dpQut01kJ/qZuD3EoalhGVhaoPI1zWAn4NjyOmihU+6seZ+d3o5UMAXgl0bl1LV+VTxLjhTtfw X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Fri, 11 Jul 2008 15:01:29 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX19Anb1bDuaBFi1WzJPty3mhtr4XRTarkU9BoH2NhAas4DciRwRJG+f1aJ8UjAWqROM= Cancel-Lock: sha1:XEpPv6bAnEAg5vEmMsaXCjAqz7U= X-X-Sender: ColinPaulGloster@news.motzarella.org Xref: g2news1.google.com comp.lang.ada:1114 comp.lang.fortran:2637 Date: 2008-07-11T16:02:37+01: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. --21754734-8220-1215788557=:9212 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 10 Jul 2008, James Giles wrote: |-----------------------------------------------------------------------| |"[..] | | | |[..] For example | |(and I think this is the original context), integer arithmetic should | |be exact if it doesn't overflow. No one would accept an implementation| |that did otherwise, but the standard should actually require it." | |-----------------------------------------------------------------------| I am not sure which of "an implementation of Fortran" and "an implementation of any language" "an implementation" was an abbreviation of above. In 1999, the Java BigInteger class was not required to provide exact arithmetic in the absence of overflow. |-----------------------------------------------------------------------| |"Many other languages also don't explicitly require such things. | |I'm not certain that Ada does." | |-----------------------------------------------------------------------| This has been required of Ada for over twenty-five years. From HTTP://archive.AdaIC.com/standards/83lrm/html/lrm-03-05.html#3.5.4 :"[..] The same arithmetic operators are predefined for all integer types (see 4.5). The exception NUMERIC_ERROR is raised by the execution of an operation (in particular an implicit conversion) that cannot deliver the correct result (that is, if the value corresponding to the mathematical result is not a value of the integer type). [..] [..]" I am grateful to James Giles; Dick Hendrickson; Fran=E7ois Jacq; and Richard Maine for their helpful and clearly time-consuming clarifications of Fortran semantics and tool issues. It is unfortunate that Richard Maine ignored that every time I pointed out that Ada suffers from some of these problems. It was clear from the reponses however, that Ada is better overall. No language is perfect and a number of theorems from computer science show that no language can be perfect. Just because I am convinced that Ada is better overall does not mean that I shall never use Fortran, so I hope that news:comp.lang.fortran participants will be helpful again when I need help with the language again. With best regards, Nicholas Colin Paul Gloster --21754734-8220-1215788557=:9212--