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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder4.news.weretis.net!cs.uu.nl!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Your wish list for Ada 202X Date: Sun, 30 Mar 2014 21:22:25 +0200 Organization: cbb software GmbH Message-ID: <15kyxwmpfd9vx.is92v4bqte9u.dlg@40tude.net> References: <7f1c01c5-3563-4b94-9831-152dbbf2ecdc@googlegroups.com> <1656778100417879549.835031laguest-archeia.com@nntp.aioe.org> <1615029592417897762.883132laguest-archeia.com@nntp.aioe.org> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: KX5nm0jf7du4gHjHR6mb/g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:19055 Date: 2014-03-30T21:22:25+02:00 List-Id: On Sun, 30 Mar 2014 18:48:13 +0000 (UTC), Luke A. Guest wrote: > Simon Clubley wrote: >> On 2014-03-30, Luke A Guest wrote: >>> wrote: >>>> One wish to ease Input/output : >>>> To have some equivalent of C primitive : printf("%c %c %c %c %c \n %c %c %c %c %c \n", >>> >>> God no. This requires parsing the string in every call, the Ada does it no >>> is superior. Plus it requires parameter passing from the right rather than >>> the left. >> >> The Ada way is ok for simple I/O. >> >> What about when you want to produce a formatted report ? > > Then you use the sub program conversions with field widths, ideally 'image > should take field width and padding information as optional parameters. What for? Image produces a string, formatted output is done into a string. It makes little sense first to generate a string and then put it into another one. The could be done in just one step, e.g. http://www.dmitry-kazakov.de/ada/strings_edit.htm#Float_Edit -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de