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,587e0e0a16d65b10 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Invade wikipedia! 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: Date: Thu, 26 Feb 2009 09:29:02 +0100 Message-ID: NNTP-Posting-Date: 26 Feb 2009 09:28:52 CET NNTP-Posting-Host: b3245cec.newsspool1.arcor-online.net X-Trace: DXC=hO0B=aEC;B;L2C_`koXfC5ic==]BZ:af>4Fo<]lROoR1^YC2XCjHcb9b_Ia1THOdU;DNcfSJ;bb[5FCTGGVUmh?4LK[5LiR>kg2GAXGB7ZZ2d? X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3812 Date: 2009-02-26T09:28:52+01:00 List-Id: On Thu, 26 Feb 2009 04:31:39 +0600, Ivan Levashew wrote: > Just one problem: how should we output Integers? Every mean is broken. > Integer'Image issues a stupid space before positive integers. > Ada.Integer_IO also outputs stupid spaces. It took me not that long to > provide Integer'Image wrapper, but I don't want this ugly face of Ada to > show on every sample that is about to output something. I don't think 'Image output is ugly. What is indeed ugly is that it is not a primitive operation of the corresponding type. T'Image is just unacceptable for a language claiming to be an OOPL. > It would be nice to have an agreement on what non-standard library to > consider common so that everybody can refer to it as if it was really > common. Image functions exist in PragmaRC, AdaCL, AWS.Utils, but every > of these functions can only deal with Naturals last time I checked them. Strings_Edit has a right Image function for Integer (and for Float too) http://www.dmitry-kazakov.de/ada/strings_edit.htm -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de