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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: actual for variable name must be variable compiler error Date: Sun, 28 Sep 2014 19:50:17 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 29 Sep 2014 02:50:18 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2cce0a40174b83136a5e3a34df5b5ee7"; logging-data="24366"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CHlHIx9+OgowK2lDOjC75i5yXZufXBiI=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: Cancel-Lock: sha1:lT+XHjJm2r83KXQQKuAx+KFXjn0= Xref: number.nntp.dca.giganews.com comp.lang.ada:189238 Date: 2014-09-28T19:50:17-07:00 List-Id: 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