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,75c440b4b7ed5f91 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Real Time IO routines -- answering Simon Wright part 1 Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> <1193693060.13888.62.camel@kartoffel> Date: Mon, 29 Oct 2007 23:01:24 +0100 Message-ID: NNTP-Posting-Date: 29 Oct 2007 23:01:26 CET NNTP-Posting-Host: fae114ed.newsspool2.arcor-online.net X-Trace: DXC=^ On Mon, 29 Oct 2007 22:24:20 +0100, Georg Bauhaus wrote: > So using 'Image or not seems a use case issue to me. > Seen from this point of view, the language, or some > notion of purity, cannot decide what the use case is. Right, this is why an equivalent of 'Image is often preferable to Text_IO. Because it does not add so much unnecessary stuff and its does not limit you to where and how the image will be placed. Usually for text rendering you would better have normal string images of values which are then aligned, wrapped, colored, shaped etc in some way. It is a bad idea to try to pack all this in one call like Put. The fact that the built-in 'Image is not very usable, for many reasons already mentioned by others, changes here little. I just use my own equivalents instead. For example, I prefer UTF-8 subscript for the number base (rather than ugly 16#...#) and superscript for its exponent part, when I do GTK+ GUI. So "use case" is indeed an important point. The original poster said nothing about the use case, so I used Image just in order to illustrate my point. Which was that Unchecked_Conversion of Time to Duration is an ugly non-portable hack, which is absolutely unnecessary, because Ada.Real_Time already provides Spilt for the purpose of getting seconds since the epoch. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de