comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Gem 39 - compiler specific?
Date: Thu, 3 Sep 2009 16:53:58 -0500
Date: 2009-09-03T16:53:58-05:00	[thread overview]
Message-ID: <h7pe04$q6j$1@munin.nbi.dk> (raw)
In-Reply-To: 19268dbw82hf4.aii8as09aapk.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message 
news:19268dbw82hf4.aii8as09aapk.dlg@40tude.net...
> On Wed, 2 Sep 2009 18:20:36 -0500, Randy Brukardt wrote:
...
>> (As an aside, this technique could not work in Janus/Ada if Buffer was an
>> unconstrained array: 'Address of an unconstrained array points at the 
>> array
>> descriptor, not the data.
>
> It must point to the first array element 13.3(14). BTW, it is interesting
> where it should point when the array is empty.

The word in 13.3(14) is "should", not "must" (a word that is not allowed in 
Standards anyway). Specifically,
13.3(14) is Implementation Advice. There is no requirement in Ada to follow 
Implementation Advice, the only requirement is to document when you don't. 
That is, an Ada compiler's (formal) correctness cannot depend on 
Implementation Advice. What Janus/Ada does here is OK (but not recommended 
of course).

                      Randy.





  parent reply	other threads:[~2009-09-03 21:53 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-02 20:38 Gem 39 - compiler specific? Maciej Sobczak
2009-09-02 23:20 ` Randy Brukardt
2009-09-03  7:26   ` Dmitry A. Kazakov
2009-09-03 15:26     ` Adam Beneschan
2009-09-03 16:38       ` Dmitry A. Kazakov
2009-09-03 17:27         ` Adam Beneschan
2009-09-03 20:26           ` Dmitry A. Kazakov
2009-09-03 22:06             ` Randy Brukardt
2009-09-04  7:29               ` Dmitry A. Kazakov
2009-09-04 12:07                 ` Maciej Sobczak
2009-09-04 13:06                   ` Dmitry A. Kazakov
2009-09-04 17:18                     ` Dmitry A. Kazakov
2009-09-04 20:34                     ` Maciej Sobczak
2009-09-04 22:41                   ` sjw
2009-09-05 20:45                     ` Maciej Sobczak
2009-09-06  6:54                       ` sjw
2009-09-03 21:58           ` Randy Brukardt
2009-09-04 17:26           ` Robert A Duff
2009-09-03 21:53     ` Randy Brukardt [this message]
2009-09-03  0:12 ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox