comp.lang.ada
 help / color / mirror / Atom feed
From: canada_bass@my-deja.com
Subject: A Text_IO fixes it?
Date: 1999/12/20
Date: 1999-12-20T00:00:00+00:00	[thread overview]
Message-ID: <83m49f$f9j$1@nnrp1.deja.com> (raw)

I've been having a problem with accessing an
array of records. This array is declared in the
package body and is never changed inside the
package (not a constant but should be). When I
try to read one fields of a record (which is an
enumerated from another package) I get the
incorrect data(consistently).

Now, here is where I got confused. I can do a
Text_IO.Put_Line (with a 'Image) of the data that
I am trying to access and it will display the
wrong value, BUT the statements following the
Put_Line will work correctly. So I figure that I
would put the same Put_Line two times in a row.
The first time it displays the incorrect data and
the second time it displays the correct data! \
This is without any other procedures calling this
one or manipulating the variable that is passed
to this procedure(the index of the array).

I've tested various ideas but I still can't seem
to come up with a solution. Has anyone ever
encountered such a thing?


Sent via Deja.com http://www.deja.com/
Before you buy.




             reply	other threads:[~1999-12-20  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-20  0:00 canada_bass [this message]
1999-12-21  0:00 ` A Text_IO fixes it? Pascal Obry
1999-12-21  0:00   ` C Bass
1999-12-22  0:00   ` C Bass
1999-12-22  0:00     ` Robert A Duff
1999-12-27  0:00       ` C Bass
1999-12-21  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