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: a07f3367d7,c75fd3043cfdcb58 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.85.37 with SMTP id e5mr1474527paz.31.1344319777509; Mon, 06 Aug 2012 23:09:37 -0700 (PDT) Path: g9ni2689878pbo.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!csnews.cs.nctu.edu.tw!news.cs.nctu.edu.tw!feeder.erje.net!news2.arglkargh.de!news.ecp.fr!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Formatted IO - Fortran style or similar. Date: Tue, 31 Jul 2012 09:17:39 +0200 Organization: cbb software GmbH Message-ID: <1ebeodttb9l6h$.17dkhwr3cqr3b$.dlg@40tude.net> References: <50164ad8$0$1156$5b6aafb4@news.zen.co.uk> <501706ca$0$1151$5b6aafb4@news.zen.co.uk> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-07-31T09:17:39+02:00 List-Id: On Mon, 30 Jul 2012 23:12:28 +0100, Mark Murray wrote: > The syntax isn't all that important; its the fine-grained method of > specifying output with a format + list_of_variables. Which is the weak point of the method. Typically, when formatting output or doing parsing, some of the parameters like field size, fill character, alignment, precision, base etc are dynamic. In fact my Ada string editing library is a port of a FORTRAN library I designed in 80's, because FORTRAN formats were unusable. I remember hacking the Hollerith Format Strings I asked myself why were I doing this. For the same reason I ported parts of the my Ada library to C++, because sscanf/sprintf are so uncomfortable to use. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de