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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: how to use "in out" for the "self" parameter in a function in a protected object? Date: Sun, 17 Sep 2017 00:02:22 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 16 Sep 2017 22:02:22 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="41ad00b6f0e50c00516aa0b75b6a3aa2"; logging-data="21530"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NaxwjouOj0sio0pWmsCFxQK6hTku+vjg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:GxvYotkFLJE9u002znDr7bVC0uQ= Xref: news.eternal-september.org comp.lang.ada:48158 Date: 2017-09-17T00:02:22+02:00 List-Id: On 09/16/2017 10:47 PM, Frank Buss wrote: > I have a function in a protected object, which needs to change a variable, but I > get this error: > > actual for "Self" must be a variable There's no Self in the code you posted, so I can't really say. However, a protected function is not allowed to change the state of the protected object. -- Jeff Carter "When danger reared its ugly head, he bravely turned his tail and fled." Monty Python and the Holy Grail 60