From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:c0c2:: with SMTP id q185-v6mr12169656iof.134.1528192442005; Tue, 05 Jun 2018 02:54:02 -0700 (PDT) X-Received: by 2002:a9d:276e:: with SMTP id r101-v6mr770833ota.9.1528192441772; Tue, 05 Jun 2018 02:54:01 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!85.12.16.70.MISMATCH!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!v8-v6no734466itc.0!news-out.google.com!f20-v6ni837itd.0!nntp.google.com!v8-v6no734464itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 5 Jun 2018 02:54:01 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.189.195.101; posting-account=3zVVBwoAAAC7BSMfgNP7DSbqU9urpt40 NNTP-Posting-Host: 87.189.195.101 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: how to read status of current_output From: mario.blunk.gplus@gmail.com Injection-Date: Tue, 05 Jun 2018 09:54:01 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1748 X-Received-Body-CRC: 967893437 Xref: reader02.eternal-september.org comp.lang.ada:52941 Date: 2018-06-05T02:54:01-07:00 List-Id: 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 !