comp.lang.ada
 help / color / mirror / Atom feed
From: Stribor40 <ikamzic@gmail.com>
Subject: actual for variable name must be variable compiler error
Date: Sun, 28 Sep 2014 17:48:20 -0700 (PDT)
Date: 2014-09-28T17:48:20-07:00	[thread overview]
Message-ID: <ccf9dd3c-c956-4ff7-bc63-2e7c3df91e2d@googlegroups.com> (raw)

I have procedure that define..

procedure myFunction (a: in out INTEGER) is
    begin


    end

which gets called in main like this....

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

Can anyone please explain whats the difference. Should in out be allowed to read and write to parameters. 


             reply	other threads:[~2014-09-29  0:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29  0:48 Stribor40 [this message]
2014-09-29  2:50 ` actual for variable name must be variable compiler error Jeffrey Carter
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