comp.lang.ada
 help / color / mirror / Atom feed
From: stt@inmet.inmet.com
Subject: Re: implicit array type conversion
Date: 27 Jul 90 16:01:00 GMT	[thread overview]
Message-ID: <20600056@inmet> (raw)
In-Reply-To: 132742@<1990Jul26


Re: Implicit array subtype conversion

It turns out that in Ada 83, implicit array subtype conversion
(aka "sliding") only takes place on array assignment,
and array object initialization at declaration (see RM 5.2.1 and 3.2.1:16).
It is easy to argue that sliding should be applicable in
more circumstances (or less, if it makes no sense for the array type),
but alas, the presence of sliding has been linked to the
use of named-with-others array aggregates (see RM 4.3.1:6).
Generally, where sliding is legal, named-with-others is illegal.

Actually, it is quite possible to imagine a rule that would allow
both to be legal in the same context, by simply stating that
an array aggregate with an OTHERS choice always takes the
bounds implied by the "applicable index constraint" even though
sliding might have allowed for different bounds in the same context.

Ada 9X will likely address this issue.

S. Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138

       reply	other threads:[~1990-07-27 16:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <132742@<1990Jul26>
1990-07-27 16:01 ` stt [this message]
1990-07-26 20:56 implicit array type conversion "Norman H. Cohen"
  -- strict thread matches above, loose matches on Subject: below --
1990-07-26 13:27 
1990-07-26 20:36 ` David Collard
1990-07-27 17:13   ` Michael Feldman
replies disabled

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