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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,15b980291302dd26 X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: limited private types Date: 2000/04/27 Message-ID: <%r4O4.184$Q47.219551@news.pacbell.net>#1/1 X-Deja-AN: 616565781 References: <8eaa26$rj2$1@nnrp1.deja.com> X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 956879739 206.170.2.20 (Thu, 27 Apr 2000 16:55:39 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Thu, 27 Apr 2000 16:55:39 PDT Newsgroups: comp.lang.ada Date: 2000-04-27T00:00:00+00:00 List-Id: >The "access" technique does not work because text_io.close takes an "in >out" parameter and gnat complains that the "access".all is not >a "variable". This runs just fine with Gnat 3.12p NT: with ada.text_io; use ada.text_io; procedure Test is type ptrs is access file_type; p : ptrs; begin p := new file_type; create(p.all, out_file, "pall"); put_line(p.all, "hello world"); close(p.all); end Test;