comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: actual for variable name must be variable compiler error
Date: Sun, 28 Sep 2014 19:50:17 -0700
Date: 2014-09-28T19:50:17-07:00	[thread overview]
Message-ID: <m0ahd9$npe$1@dont-email.me> (raw)
In-Reply-To: <ccf9dd3c-c956-4ff7-bc63-2e7c3df91e2d@googlegroups.com>

On 09/28/2014 05:48 PM, Stribor40 wrote:
> 
> procedure myFunction (a: in out INTEGER) is

Do you also have a function Myprocedure?

>    myFunction(5) this gives me error that actual must be variable
>    myFunction(SomeOtherVariable) compiles fine

"in" means the subprogram reads the parameter; "out", that it assigns to the
parameter; and "in out" that it does both. You can only assign to a variable.
Certainly not to a numeric literal.

-- 
Jeff Carter
"I wave my private parts at your aunties."
Monty Python & the Holy Grail
13


  reply	other threads:[~2014-09-29  2:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29  0:48 actual for variable name must be variable compiler error Stribor40
2014-09-29  2:50 ` Jeffrey Carter [this message]
2014-09-29 10:39 ` Brian Drummond
2014-09-29 19:37   ` Simon Clubley
2014-09-29 21:33     ` Georg Bauhaus
2014-09-30  0:27       ` Simon Clubley
2014-09-30 12:09         ` Peter Chapin
2014-09-30 13:17         ` Dennis Lee Bieber
2014-09-30 19:48           ` Simon Clubley
2014-09-30 14:47         ` Adam Beneschan
2014-09-29 14:27 ` Denis McMahon
replies disabled

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