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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin2!goblin.stu.neva.ru!ecngs!feeder2.ecngs.de!87.79.20.101.MISMATCH!newsreader4.netcologne.de!news.netcologne.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 18 Feb 2014 09:04:27 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Text_IO, was: Re: Something I don't understand References: <4a3e55f6-9f54-4084-9f37-96efd4b0d349@googlegroups.com> <0b358700-871b-4603-addd-65e07c7d59e5@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <5303140a$0$9505$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 18 Feb 2014 09:04:26 CET NNTP-Posting-Host: ce0519ed.newsspool1.arcor-online.net X-Trace: DXC=K>HG2gd5Sl^mG86`U=_nC_ic==]BZ:af^4Fo<]lROoRQnkgeX?EC@@P8WEnDiKGIRRPCY\c7>ejVXIm>LF2; ALUTnk2=?>Leo^T X-Complaints-To: usenet-abuse@arcor.de X-Original-Bytes: 2320 Xref: number.nntp.dca.giganews.com comp.lang.ada:184984 Date: 2014-02-18T09:04:26+01:00 List-Id: On 18/02/14 07:56, Niklas Holsti wrote: > Only if the format string is a static constant, which would be rather > limiting. Starting from some frequent use cases, such as - logging and similar technical status reports, - invoices, bank statements and other economic reports static constant formats would cover a lot. I'd think that generics, as Mark H noted, might allow for elaborating minor variations at run-time, at least in some cases. A big plus of templates is that they are instances of Bentley's programming pearls, of proven value. They shift the focus from how the language achieves printing to what is being printed, the latter being what matters.