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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Question about reference types Date: Mon, 27 Oct 2014 13:31:53 +0100 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, 27 Oct 2014 12:31:44 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="22470"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FLUZZXZtgIzWWOOi0C8WAUOiz430g6TU=" 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:sc4VFN9/Zil8zIzhOSFlqncvsCQ= Xref: news.eternal-september.org comp.lang.ada:22812 Date: 2014-10-27T13:31:53+01:00 List-Id: On 27.10.14 13:09, rkodinets@gmail.com wrote: > Hello, > I'm Ada novice and I have some trouble with understanding the Implicit_Dereference aspect feature. > > I tried to use the feature with a read-only-access accessor object. > Get_Int(X).Data.all := 33; -- Error: left hand side of assignment must be a variable > Get_Int(X) := 33; -- No error. > Why is it so? To me it looks like an effect of trying new features not yet widely supported, or tested. But certainly worth a report if confirmed.