From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: i need help w/problem
Date: 1999/02/22
Date: 1999-02-22T00:00:00+00:00 [thread overview]
Message-ID: <m3zp66ffgs.fsf@mheaney.ni.net> (raw)
In-Reply-To: H0x5GOmX#GA.155@pet.hiwaay.net
"David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> writes:
> It's probably better to use an instantiation of Text_IO.Float_IO.Put...
Since subtype Float was being used, a better choice may be the
predefined package Ada.Float_Text_IO, which was specifically intended to
remove the entry barrier for neophyte Ada programmers.
A very subtle point: Float_Text_IO is _not_ an instantiation of
Text_IO.Float_IO. It takes Float parameters, and looks just like an
instantiation of Float_IO, but it is not actually an instantiation of
Float_IO.
Which mostly means if you have this:
generic
type Float_Type is digits <>;
with package P is new Ada.Text_IO.Float_IO (Float_Type);
package GQ is ...
then the following instantiation
package Q is new GQ (Float, Float_Text_IO);
is illegal.
next prev parent reply other threads:[~1999-02-22 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-21 0:00 i need help w/problem zufandel
1999-02-22 0:00 ` Allan Davis
1999-02-22 0:00 ` bill
1999-02-22 0:00 ` Corey Ashford
1999-02-22 0:00 ` robert_dewar
1999-02-22 0:00 ` dennison
1999-02-22 0:00 ` zufandel
1999-02-22 0:00 ` Matthew Heaney
1999-02-22 0:00 ` Mike Silva
1999-02-22 0:00 ` zufandel
1999-02-22 0:00 ` dennison
1999-02-22 0:00 ` Nick Roberts
1999-02-22 0:00 ` David C. Hoos, Sr.
1999-02-22 0:00 ` Matthew Heaney [this message]
1999-02-23 0:00 ` Pascal Obry
1999-02-23 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox