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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.119.166 with SMTP id kv6mr38869682pab.19.1430729588926; Mon, 04 May 2015 01:53:08 -0700 (PDT) X-Received: by 10.50.136.129 with SMTP id qa1mr125014igb.4.1430729588889; Mon, 04 May 2015 01:53:08 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!m20no8215002iga.0!news-out.google.com!n7ni24502igk.0!nntp.google.com!m20no8215000iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 4 May 2015 01:53:08 -0700 (PDT) In-Reply-To: <1clezdvkle213$.z5pl2xkhti8a$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.2.70.40; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le NNTP-Posting-Host: 123.2.70.40 References: <1kxou0nloqg9c$.1x0itzgdrlosm$.dlg@40tude.net> <1i8x3r1feyzkt$.j85il7e3wpv9.dlg@40tude.net> <142zdljlf0w57.1xh4g0wxv88y8.dlg@40tude.net> <1clezdvkle213$.z5pl2xkhti8a$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <723a14f8-d648-4612-acca-833db6a337d5@googlegroups.com> Subject: Re: getting same output as gfortran, long_float From: robin.vowels@gmail.com Injection-Date: Mon, 04 May 2015 08:53:08 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:25723 Date: 2015-05-04T01:53:08-07:00 List-Id: On Monday, May 4, 2015 at 5:21:28 PM UTC+10, Dmitry A. Kazakov wrote: > On Sun, 3 May 2015 17:15:15 -0700 (PDT), r.nospam@gmail.com wrote: > > > On Friday, May 1, 2015 at 5:45:23 PM UTC+10, Dmitry A. Kazakov wrote: > > >> Actually REAL*16 is exactly portable. > > > > No it's not. > > Some compilers treat that is an error. > > Portability applies to compilable programs only. You could not compile > > type X is mod 2**64; > > either. That does not make it non-portable, IMO. > > Portable means: The program exposes same [logically relevant] behavior on > all platforms [of interest]. Portable means that a program that adheres to the language standard is capable of running on any system where there is a compiler for that language. There might be different limits for such things as maximum size of number on different machines, but nevertheless the program is capable of running on any particular system provided that it does not exceed such limits. > A program that does not compile on a platform of interest is just an > illegal program. It is neither portable or non-portable. We don't know yet. But in this case, we know that the program is not portable, because it violates the standard. > > That form is non-standard. > > Maybe. Though "FORTRAN" and "standard" sound silly in the same context. > > > SELECTED_REAL_KIND or a similar modern form is how > > precision may be specified in a portable manner. > > Maybe, but not for the reason of being standard or compilable. The point > was about specifying precision [and accuracy] in the problem space terms > rather than in machine-specific ones.