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, MSGID_RANDY 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: r_srinivasan@my-deja.com Subject: Re: limited private types Date: 2000/04/27 Message-ID: <8eaa26$rj2$1@nnrp1.deja.com>#1/1 X-Deja-AN: 616498296 References: <8e7jbb$s0h$1@nnrp1.deja.com> X-Http-Proxy: 1.0 tammy.geics.ge.com:80 (Squid/2.2.STABLE4), 1.0 x27.deja.com:80 (Squid/1.1.22) for client 3.29.30.84, 206.189.239.171 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Apr 27 21:05:21 2000 GMT X-MyDeja-Info: XMYDJUIDr_srinivasan Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) 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". In article , Ray Blaak wrote: > r_srinivasan@my-deja.com writes: > > Currently I am using text_io package. Unfortunately the type > > text_io.file_type is a "limited private" type and this means no > > assignments. I have been able to get around this somewhat by using > > File_access type but there is no "close" procedure that will take a > > file_access. > > Assuming: > > type File_Access is access Text_IO.File_Type; > f_ptr : File_Access; > > then why can't you do Text_IO.Close(f_ptr.all)? > > -- > Cheers, The Rhythm is around me, > The Rhythm has control. > Ray Blaak The Rhythm is inside me, > blaak@infomatch.com The Rhythm has my soul. > Sent via Deja.com http://www.deja.com/ Before you buy.