comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: sequential IO package, recieving error "Actual for "File" must be a variable"
Date: Thu, 08 Feb 2001 04:24:11 GMT
Date: 2001-02-08T04:24:11+00:00	[thread overview]
Message-ID: <3A821F64.9F7FD6C9@acm.org> (raw)
In-Reply-To: 95t1iu$6it$1@slb6.atl.mindspring.net

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



      parent reply	other threads:[~2001-02-08  4:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-08  2:29 sequential IO package, recieving error "Actual for "File" must be a variable" arcele
2001-02-08  4:07 ` Robert Dewar
2001-02-08  4:24 ` Jeffrey Carter [this message]
replies disabled

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