comp.lang.ada
 help / color / mirror / Atom feed
* how to read status of current_output
@ 2018-06-05  9:54 mario.blunk.gplus
  2018-06-05 11:44 ` AdaMagica
  2018-06-05 17:24 ` G. B.
  0 siblings, 2 replies; 8+ messages in thread
From: mario.blunk.gplus @ 2018-06-05  9:54 UTC (permalink / raw)


Hello,

I have a program that frequently changes the current_output (with statement set_output (blabla)). During the course of the program I want to read the status, means the current value of current_output. I tried this code:

handle_1, handle_2 : ada.text_io.file_type;

if ada.text_io.file_type (current_output) = handle_1 then ...

The compiler outputs this:
there is no applicable operator "=" for private type "Ada.Text_Io.File_Type"

I know ada.text_io.file_type is a limited type, which makes using variables in that context impossible.

Is there a more professional way to read the status of current_output ?
Thanks !


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

end of thread, other threads:[~2018-06-06 20:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-05  9:54 how to read status of current_output mario.blunk.gplus
2018-06-05 11:44 ` AdaMagica
2018-06-06  7:12   ` mario.blunk.gplus
2018-06-05 17:24 ` G. B.
2018-06-06  7:14   ` mario.blunk.gplus
2018-06-06 11:01     ` Marius Amado-Alves
2018-06-06 17:20       ` mario.blunk.gplus
2018-06-06 20:28         ` Randy Brukardt

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