comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: String to Integer conversion?
Date: 1998/08/04
Date: 1998-08-04T00:00:00+00:00	[thread overview]
Message-ID: <6q6p03$d2a@hacgate2.hac.com> (raw)
In-Reply-To: m3emuxk0q6.fsf@mheaney.ni.net

Matthew Heaney wrote in message ...
>Agreed, but here's another argument.  My _expectation_ was that there
>would be a predefined instantiation for type Duration, because other
>types in Standard had predefined instantations.  If it's natural for me
>to expect something to be there, then maybe it should be there.  Maybe.
Just to put my two cents' worth in on this subject, let me relate an
experience of several years back on a large Ada83 project.

I was looking at ways to speed up compilation, reduce executable size, etc.,
and one of the discoveries I made was that there were dozens of
instantiations of Duration_IO throughout the system.  The impact of these
many instantiations is, to be sure, dependent in large degree on how the
implementation does generics.  But in this case, there was NOT ONE instance
which was necessary -- i.e., all of what was being done could have (should
have, in my opinion), and now is being done with the attributes 'image and
'value.  In other words, no one was reading or writing to or from files with
these instances, so the code for all of the file operations was wasted.

I, for one, was glad to see 'image and 'value provided for floating point
types, since many of the uses of instances of Float_IO were similarly used
for things which could be more simply done with the attributes.

David C. Hoos, Sr.







  reply	other threads:[~1998-08-04  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <c1.2b8.2Lzh62$03A@zesi.ruhr.de>
     [not found] ` <6ndi5d$uj3@gcsin3.geccs.gecm.com>
1998-07-31  0:00   ` String to Integer conversion? Matthew Heaney
1998-07-30  0:00     ` nabbasi
1998-08-01  0:00     ` Robert Dewar
1998-08-01  0:00       ` Matthew Heaney
1998-08-02  0:00         ` Robert Dewar
1998-08-02  0:00           ` Matthew Heaney
1998-08-04  0:00             ` Robert Dewar
1998-08-04  0:00               ` Matthew Heaney
1998-08-04  0:00                 ` David C. Hoos, Sr. [this message]
1998-07-31  0:00 ` Matthew Heaney
1998-07-31  0:00   ` daniel gaudry
replies disabled

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