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 Path: g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Real Time IO routines Date: Mon, 29 Oct 2007 18:25:46 +0100 Organization: Adalog Message-ID: References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> <1193674697.257242.163990@v23g2000prn.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1193680864 8683 195.25.228.57 (29 Oct 2007 18:01:04 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Mon, 29 Oct 2007 18:01:04 +0000 (UTC) User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <1193674697.257242.163990@v23g2000prn.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:2620 Date: 2007-10-29T18:25:46+01:00 List-Id: Adam Beneschan a �crit : > Sorry, that's just nonsense. The semantics and result of 'Image are > well-defined by the language. If those semantics are acceptable for a > particular use, then there's nothing wrong with using 'Image (unless > there's an issue with using a secondary stack as Ludovic mentioned). > If they're not, then don't use it. 'Image does not return things in a > way that makes it amenable to nicely formatted reports where things > line up. (If you are creating a report with real numbers where you > want all the decimal points to line up, 'Image is probably not > best.) Other than that, I can see no reason not to use 'Image There is an important reason that many people forget. Compare: put_line (Integer'image(I)); with put (I); -- Assuming proper instantiation of Integer_IO If the line length is bounded and there remains not enough space on the line to accomodate the number, the former will write the number "across" the line break, while the latter will insert a EOL mark before the number and write the whole number on the next line. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr