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=0.1 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,HK_RANDOM_FROM autolearn=no autolearn_force=no version=3.4.4 Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.ada Subject: Re: actual for variable name must be variable compiler error Date: Mon, 29 Sep 2014 14:27:14 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 29 Sep 2014 14:27:14 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="11380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/u8JYooil60OZRmoWltGYqHZpQtAJEK7I=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:zcQ6p19I4nng0/Aq2ya4nLUJvaw= Xref: number.nntp.dca.giganews.com comp.lang.ada:189240 Date: 2014-09-29T14:27:14+00:00 List-Id: On Sun, 28 Sep 2014 17:48:20 -0700, Stribor40 wrote: > Can anyone please explain whats the difference. Should in out be allowed > to read and write to parameters. You can't pass a literal value to a function parameter of type in out. At the end of the procedure, it will write the updated value back to the calling statement. When it tries to do that, if you passed it a literal value, what is it going to send the updated value back to? It can't change a literal 5 into a 4 or a 6 if the parameter was modified in the procedure, but you've told it (by declaring the parameter in out) that you want the parameter written back to the calling statement. It's like writing: 5 = fn(5) -- Denis McMahon, denismfmcmahon@gmail.com