From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Extend slices for n dimensional arrays for Ada 202X
Date: Fri, 27 Jan 2017 15:20:04 +0100
Date: 2017-01-27T15:20:04+01:00 [thread overview]
Message-ID: <o6fkuj$7tg$1@gioia.aioe.org> (raw)
In-Reply-To: o6fja1$vq8$1@dont-email.me
On 27/01/2017 14:53, G.B. wrote:
> On 27.01.17 10:34, Dmitry A. Kazakov wrote:
>> On 26/01/2017 19:29, Randy Brukardt wrote:
>>
>>> So I don't see this happening - it doesn't make sense in the context
>>> of Ada
>>> implementation strategies.
>>
>> That is why I keep on saying, give users the array interface (and the
>> array slice interface) and let users implement their custom arrays.
>
> Will some Iterator_Interface and generalized
> loop iteration not provide for custom arrays?
Not even close. Remember the question was about slices. A slice in
copying context is an object of same or related type. The latter is when
some dimensions get collapsed. E.g. a vector taken from a matrix, it is
another type.
In the referential context it is even more complicated. A slice is
always a type of different representation. As Randy has explained, Ada's
built-in array types were designed with referential slices in mind.
It is a complex network of related types you cannot emulate with crude
hacks like iterator interface.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2017-01-27 14:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-26 13:29 REQ: Extend slices for n dimensional arrays for Ada 202X Lucretia
2017-01-26 14:01 ` Lucretia
2017-01-26 14:03 ` Lucretia
2017-01-26 14:52 ` Dmitry A. Kazakov
2017-01-27 9:19 ` Alejandro R. Mosteo
2017-01-27 14:04 ` Lucretia
2017-01-26 18:29 ` Randy Brukardt
2017-01-27 1:54 ` Robert Eachus
2017-01-27 5:39 ` Robert Eachus
2017-01-27 14:06 ` Lucretia
2017-01-27 23:30 ` Randy Brukardt
2017-01-28 0:58 ` Robert Eachus
2017-01-27 9:34 ` Dmitry A. Kazakov
2017-01-27 13:53 ` G.B.
2017-01-27 14:20 ` Dmitry A. Kazakov [this message]
2017-01-27 23:37 ` Randy Brukardt
2017-01-28 9:08 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox