comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Newbe compile problems
Date: 1996/12/19
Date: 1996-12-19T00:00:00+00:00	[thread overview]
Message-ID: <dewar.850996964@merv> (raw)
In-Reply-To: AAlsyjoyZ4@geol.spb.su


Cyril said

"#1 >> with Float_Text_IO;

Are you sure that this package exists? The standard package is called
TEXT_IO.FLOAT_IO.

Or if the IO package is of your own, then check whether its has been compiled
_before_ you're trying to compile your sample.

#2 >>  A, B : FLOAT := 0.0;

This may an error too, the thing is that decimal IS NOT a sign of a FLOAT-type
constant, it is a sign of a FIXED-type constant. The FLOAT-type constant
should be written so 12.34E56, it IS to have a power_of_ten postfix. This
detail is mentioned in the LRM ( I've got the Ada83 one only )."



Both points are quite wrong, even for Ada 83. There is no package
Text_IO.Float_IO in either Ada 83 or Ada 95 (this is a generic package,
not a package), and in any case, surely since the questioner is using
Ada 95, we should suggest the proper package name Ada.Float_Text_IO.

For the second point, 0.0 is of course a legal float literal, I am not
quite sure what leads to this misconception.

Finally Cyril, why not get hold of GNAT so that you have access to Ada 95.
You might want to contact Sergey Rybin at Moscow State University for
information on how to obtain GNAT (he certainly has appropriate internet
connections available there, and could perhaps supply a copy to you).





  reply	other threads:[~1996-12-19  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-18  0:00 Newbe compile problems Sazonov Cyril
1996-12-19  0:00 ` Robert Dewar [this message]
1996-12-19  0:00 ` Keith Thompson
  -- strict thread matches above, loose matches on Subject: below --
1996-12-24  0:00 Sazonov Cyril
1996-12-16  0:00 Jamie Amendolagine
1996-12-17  0:00 ` Robert Dewar
1996-12-19  0:00 ` David Wheeler
1996-12-19  0:00   ` Larry Kilgallen
1996-12-15  0:00 James Amendolagine
1996-12-15  0:00 ` Robert Dewar
1996-12-15  0:00 ` Tom Moran
1996-12-16  0:00 ` Richard Curnow
1996-12-17  0:00 ` David Wheeler
1996-12-19  0:00   ` Jesse E. Smith
replies disabled

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