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,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Fri, 07 May 2010 08:21:33 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pcls6.std.com 1273234875 12828 192.74.137.71 (7 May 2010 12:21:15 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 7 May 2010 12:21:15 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:uoLju+zZm2eqdz1F3dZ9ew/XPQI= Xref: g2news2.google.com comp.lang.ada:11364 Date: 2010-05-07T08:21:33-04:00 List-Id: "J-P. Rosen" writes: > Robert A Duff a �crit : >> But for "columns" you want something like: >> >> 1 >> -3 >> 123 >> -123 >> >> But 'Image gives you: >> >> 1 >> -3 >> 123 >> -123 >> >> I don't get it. 'Image isn't particularly helpful in producing >> columnar output. > > 'Image is just for quick, debug-like output. So that's why it's broken?! I'm imagining the Ada 83 design team saying, "This feature is only for quick, debug-like output, so let's make it do something annoying, so folks won't be able to use it for serious work, MWAHAHAH." ;-) Sorry, I don't buy that -- I think they just made a mistake. And it's too late to fix it. >...If you want nice formatted > output, by all means use the IO packages, that's what they are for. I don't want nice formatted output. I want the human-readable string image of the number, and for 123, that's "123", not " 123". In other words, I want: Put_Line (Error_Count'Image (Num_Errors) & " errors detected."); to print: 123 errors detected. All this talk about formatting came from folks asking why does 'Image produce an annoying blank, and the proposed answer was "for columnar formatted output", and the response is "no, that doesn't explain it, because an annoying blank doesn't do columnar output". - Bob