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: border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.tele2net.at!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder02.ams.xsnews.nl!feeder03.ams.xsnews.nl!frontend-F01-06.ams.94.232.116.90 Date: Tue, 28 Oct 2014 19:50:33 +0000 From: Martyn Pike Reply-To: usenet@embeddedconsultinguk.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Question about reference types References: <7804a038-2eb0-4d70-b4ad-9bca94888661@googlegroups.com> <544f8d3a$0$25864$c00b7f07@94.232.116.90> <58626ffb-f36b-44fa-bd3d-41fc580ea06b@googlegroups.com> In-Reply-To: <58626ffb-f36b-44fa-bd3d-41fc580ea06b@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <544ff38b$0$4512$c00b7f07@94.232.116.90> Organization: usenetbucket Xref: number.nntp.giganews.com comp.lang.ada:190174 Date: 2014-10-28T19:50:33+00:00 List-Id: On 28/10/2014 13:05, Roman Kodinets wrote: > On Tuesday, October 28, 2014 3:36:20 PM UTC+3, Martyn Pike wrote: >> I don't think this is a bug. >> >> type Accessor (Data : access constant Integer) with >> >> Means Data is access to a constant Integer. The OP is trying to modify >> Data with : >> >> Get_Int(X).Data.all := 33; >> >> Martyn > > Yes, the error message is not a bug. The (possible) bug is that there is no error message being triggered by the next line > Get_Int(X) := 33; > which should be semantically the same thing as > Get_Int(X).Data.all := 33; > Agreed. I should have read all of your original post :-(