From: Martyn Pike <usenet@embeddedconsultinguk.com>
Subject: Re: Question about reference types
Date: Tue, 28 Oct 2014 12:33:57 +0000
Date: 2014-10-28T12:33:57+00:00 [thread overview]
Message-ID: <544f8d3a$0$25864$c00b7f07@94.232.116.90> (raw)
In-Reply-To: <m2mhj2$rou$1@loke.gir.dk>
On 27/10/2014 22:39, Randy Brukardt wrote:
> Looks like a GNAT bug to me. Send them a bug report.
>
> And don't make the mistake of thinking that what GNAT does is the same as
> what Ada requires. :-) All complex software has bugs, and GNAT surely is no
> exception.
>
> Randy.
>
> <rkodinets@gmail.com> wrote in message
> news:7804a038-2eb0-4d70-b4ad-9bca94888661@googlegroups.com...
>> On Monday, October 27, 2014 3:31:52 PM UTC+3, G.B. wrote:
>>> To me it looks like an effect of trying new features not
>>> yet widely supported, or tested. But certainly worth a report
>>> if confirmed.
>>
>> I tested it with GNAT GPL 2014 and GNAT FSF 4.8.2 with same result.
>> (Forgot to mention it in OP)
>
>
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
next prev parent reply other threads:[~2014-10-28 12:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 12:09 Question about reference types rkodinets
2014-10-27 12:31 ` G.B.
2014-10-27 12:37 ` rkodinets
2014-10-27 22:39 ` Randy Brukardt
2014-10-28 12:33 ` Martyn Pike [this message]
2014-10-28 13:05 ` Roman Kodinets
2014-10-28 19:50 ` Martyn Pike
2014-10-28 22:53 ` Roman Kodinets
2014-10-27 18:09 ` Martyn Pike
2014-10-28 13:41 ` Roman Kodinets
2014-10-28 17:45 ` Roman Kodinets
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox