comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Formatted IO - Fortran style or similar.
Date: Tue, 31 Jul 2012 09:17:39 +0200
Date: 2012-07-31T09:17:39+02:00	[thread overview]
Message-ID: <1ebeodttb9l6h$.17dkhwr3cqr3b$.dlg@40tude.net> (raw)
In-Reply-To: 501706ca$0$1151$5b6aafb4@news.zen.co.uk

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



  reply	other threads:[~2012-08-07  6:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30  8:50 Formatted IO - Fortran style or similar Mark Murray
2012-07-30  9:59 ` Ian Clifton
2012-07-30 18:57   ` Michael Rohan
2012-07-30 22:12   ` Mark Murray
2012-07-31  7:17     ` Dmitry A. Kazakov [this message]
     [not found]     ` <npbe18d3o3gdc2ut41f1codvv6rhfgidr3@invalid.netcom.com>
2012-07-31 11:56       ` Jacob Sparre Andersen
2012-07-31 15:12         ` stefan-lucks
2012-07-31 17:34           ` Adam Beneschan
2012-08-01  6:56             ` stefan-lucks
     [not found]           ` <be5g18p0gnf2ocdf3hmgjslgnu0jogrh91@invalid.netcom.com>
2012-08-01  6:48             ` stefan-lucks
2012-08-01  8:09           ` Jacob Sparre Andersen
2012-08-01 10:28             ` Georg Bauhaus
2012-08-01 16:28             ` Simon Wright
2012-08-01 19:14             ` Michael Rohan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox