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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3c580b71c42175a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-07 20:26:41 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3A821F64.9F7FD6C9@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: sequential IO package, recieving error "Actual for "File" must be a variable" References: <95t1iu$6it$1@slb6.atl.mindspring.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 08 Feb 2001 04:24:11 GMT NNTP-Posting-Host: 158.252.123.212 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 981606251 158.252.123.212 (Wed, 07 Feb 2001 20:24:11 PST) NNTP-Posting-Date: Wed, 07 Feb 2001 20:24:11 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: supernews.google.com comp.lang.ada:4963 Date: 2001-02-08T04:24:11+00:00 List-Id: arcele wrote: > > in my program using the sequential_io package i am recieving the error > "Actual for "File" must be a variable" for this line > > 71. seq_io.close(old_file); > > i have instantiated sequential_io to be seq_io and declared > > 32. old_file : seq_io.file_type; Is it possible that the name Old_File at line 71 does not refer to the variable Old_File declared at line 32? Possibly at line 71 you are referring to a subprogram parameter of mode in, which would hide the declaration at line 32. A mode in parameter is a constant and cannot be passed to Close (in out), but can be passed to Read (in). -- Jeff Carter "Nobody expects the Spanish Inquisition!" Monty Python's Flying Circus