comp.lang.ada
 help / color / mirror / Atom feed
* A Text_IO fixes it?
@ 1999-12-20  0:00 canada_bass
  1999-12-21  0:00 ` Matthew Heaney
  1999-12-21  0:00 ` Pascal Obry
  0 siblings, 2 replies; 7+ messages in thread
From: canada_bass @ 1999-12-20  0:00 UTC (permalink / 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.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-12-27  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-20  0:00 A Text_IO fixes it? canada_bass
1999-12-21  0:00 ` Matthew Heaney
1999-12-21  0:00 ` 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

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