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.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Text_IO, was: Re: Something I don't understand Date: Mon, 17 Feb 2014 18:59:43 +0200 Organization: Tidorum Ltd Message-ID: References: <4a3e55f6-9f54-4084-9f37-96efd4b0d349@googlegroups.com> <0b358700-871b-4603-addd-65e07c7d59e5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net BoO6J2cUqPAouEPCh5RIlgl6WSEvYkoESTvWFmO19b4iyb+sTq Cancel-Lock: sha1:48blLTySkRxYNNDJl3rwDCqRcQ0= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: Xref: number.nntp.dca.giganews.com comp.lang.ada:184941 Date: 2014-02-17T18:59:43+02:00 List-Id: On 14-02-17 14:52 , Simon Clubley wrote: > On 2014-02-16, Robert A Duff wrote: [snip] >> A simplified and type-safe version of C's printf style >> (template-based) formatting would be more readable than >> concatenating a bunch of strings together to print messages, >> and MUCH better than using a series of Put calls to print >> a single message. >> > > _Totally_ agree with this. I disagree, but then I don't understand how Robert would make C's template idea type-safe -- might Robert expand on his ideas? I think that the present method of concatenating strings or using several Puts is good; what is needed is to extend or replace the 'Image attribute with similar value-to-string functions which are more controllable, flexible, and work also for composite types. Perhaps something analogous to the stream attributes, but with the ability to control the output format at each invocation, which is not possible with the stream attributes. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .