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: 103376,75c440b4b7ed5f91 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e34g2000pro.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Real Time IO routines answering Simon Wright part 2 Date: Wed, 31 Oct 2007 18:00:22 -0700 Organization: http://groups.google.com Message-ID: <1193878822.129137.60540@e34g2000pro.googlegroups.com> References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> <1193844955.601875.108200@e34g2000pro.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1193878822 28946 127.0.0.1 (1 Nov 2007 01:00:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 1 Nov 2007 01:00:22 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e34g2000pro.googlegroups.com; posting-host=66.126.103.122; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2689 Date: 2007-10-31T18:00:22-07:00 List-Id: I don't know why I'm masochistic enough to keep up this silly argument, but... On Oct 31, 1:08 pm, a...@anon.org (anon) wrote: > And even though Ada has no real GUI in the specification it does have > some. Rather the data is printed to the monitor or to a printer, the user > (or teacher in the case of students) wants to be able to read the results > without eye stain and in a timely fashion, that is, only the valid > significant data. Which means that a programmer has to formatted > their outputted data in a fashion that is informative but not too much > that it causes confusion or stain in the user. > > And any 19 year programming vet. should knows this!!! As a 30-plus-year programming veteran (19 years with Ada), I also know that there are uses of 'Image that do not involve generating output that a person will have to read for 8 hours a day; and, in fact, there are uses of 'Image that don't involve generating output at all. Say you have an Integer variable File_ID (OK, define your own integer type if you think only newbies would use the predefined Integer types), and you want to use that as part of a file name that you're going to create. (You already know File_ID is nonnegative.) What on earth would be wrong with something like: Ada.Text_IO.Create (New_File, Ada.Text_IO.Out_File, Name => "nfz_" & Ada.Strings.Fixed.Trim (Integer'Image (File_ID), Both) & ".txt"); And what would be the point of a coding standard that forces you to use, say, an instance of Integer_IO to build the file name rather than using 'Image? Yet your argument seems to be that, because there are inappropriate uses of 'Image where you should be generating nicely formatted output (something I've already acknowledged), that therefore the *only* appropriate use of 'Image is for debugging. Sorry, that's just silly. -- Adam