comp.lang.ada
 help / color / mirror / Atom feed
From: "Bruce Detter" <bruce.detter@lmco.com>
Subject: Re: GNAT Stream Read processing problem
Date: 1999/01/06
Date: 1999-01-06T00:00:00+00:00	[thread overview]
Message-ID: <7700iq$l613@svlss.lmms.lmco.com> (raw)
In-Reply-To: 76uv4j$njr$1@nnrp1.dejanews.com

Robert,
Thanks for the tip about the -gnatv option, I will add it to the compiler
options.  GNAT has a lot of power and I'm just now beginning to learn how to
take advantage of more of the capabilities.

Thanks again...
BCD3

dewar@gnat.com wrote in message <76uv4j$njr$1@nnrp1.dejanews.com>...
>In article <76tsgd$s0o1@svlss.lmms.lmco.com>,
>  "Bruce Detter" <bruce.detter@lmco.com> wrote:
>
>> When I compile this no matter what type is specified for
>> the Read attribute and the data element to be read into,
>> I get the following errors three times:
>
>> ... expected type "Standard.Integer"
>> ... found type "Standard.Long_Integer"
>>
>> and it points me to the second parameter of each 'Read.
>> Can someone suggest what it is I'm doing wrong.
>
>Surely if you use -gnatv to point out the EXACT location of
>the error:
>
>    30.          Long_Integer'Read(S, Data(ndx).elements);
>                                           |
>        >>> expected type "Standard.integer"
>        >>> found type "Standard.long_integer"
>
>that should be enough of a clue, it is VERY specifically
>telling you that the subscript of Data must be of type
>Standard.integer, and you are using long_integer.
>
>While you are learning Ada 95, use -gnatv as a matter of
>course to tell exactly where the error message is being
>posted. GNAT goes to great pains to try to post the error
>in exactly the most helpful place, take advantage of this!
>
>Robert Dewar
>Ada Core Technologies
>
>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own






  parent reply	other threads:[~1999-01-06  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-05  0:00 GNAT Stream Read processing problem Bruce Detter
1999-01-05  0:00 ` Tom Moran
1999-01-05  0:00   ` Bruce Detter
1999-01-06  0:00 ` dewar
1999-01-06  0:00   ` Matthew Heaney
1999-01-06  0:00   ` Bruce Detter [this message]
1999-01-06  0:00   ` Elaborate compile-time error messages (was: GNAT Stream Read ...) Larry Kilgallen
1999-01-06  0:00     ` Marin David Condic
1999-01-11  0:00       ` Georg Bauhaus
1999-01-13  0:00         ` Simon Wright
1999-01-06  0:00     ` bourguet
1999-01-07  0:00     ` dewar
1999-01-07  0:00       ` Larry Kilgallen
1999-01-10  0:00         ` robert_dewar
replies disabled

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