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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: actual for variable name must be variable compiler error Date: Mon, 29 Sep 2014 23:33:44 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 29 Sep 2014 21:33:44 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="3c43ca61e7cae464e9811be0f871aa3d"; logging-data="4828"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xU+ePvwacs4v22FFE/BxSjUmVdgmSOPQ=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:yYEWy7038Es+/HQjFGsQobijszM= Xref: number.nntp.dca.giganews.com comp.lang.ada:189244 Date: 2014-09-29T23:33:44+02:00 List-Id: On 29.09.14 21:37, Simon Clubley wrote: > void update_value(unsigned long int a) > { > printf("Value of a on entry to update_value() is %lu\n", a); > a = a + 7; Once you submit to contradictions like "a equals a + 7" being signs of advanced understanding---though wondering how that could be--- you are well prepared for an introduction to more programming quizzes, such as why and when `5' may become a name of 4. In fact, functionist's favorite REPL is sufficiently lenient, Prelude> let 5 = 4 in 5 5 > printf("Value of a after modification is %lu\n", a); > return; > }