From: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov)
Subject: Re: Why not using [] instead of () for array?
Date: Wed, 27 Feb 2002 08:48:18 GMT
Date: 2002-02-27T08:48:18+00:00 [thread overview]
Message-ID: <3c7c9767.727156@News.CIS.DFN.DE> (raw)
In-Reply-To: 5ee5b646.0202262054.258490de@posting.google.com
On 26 Feb 2002 20:54:03 -0800, dewar@gnat.com (Robert Dewar) wrote:
>Toshitaka Kumano <kumano@cl.cilas.net> wrote in message news:<3C7A8668.50BC257B@cl.cilas.net>...
>
>> From a mathematical view, The syntax,
>> Output := Mapping (Input);
>> can be read "Input maps onto Input".
>
>Kumano-san states the mathematical argument very nicely
>here. Personally I tend to agree with this point of view.
Yes, however analogy is not complete in Ada. At least three things
spoil this nice equivalence. For arrays one can do:
1. Result assignment. Mapping (Input) := Output
2. Index ranges. Subset := Mapping (From..To)
3. Aggregates
This by no means invalidates the argument of course. Rather opposite,
one should support access results, user-defined index types (=>ranges,
slices), user-defined aggregates ...
... and maybe user-defined []-operator (:-))
Regards,
Dmitry Kazakov
next prev parent reply other threads:[~2002-02-27 8:48 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-25 1:19 Why not using [] instead of () for array? Adrian Hoe
2002-02-25 1:48 ` Larry Kilgallen
2002-02-25 3:14 ` Darren New
2002-02-25 10:14 ` Peter Hermann
2002-02-25 3:23 ` Dale Stanbrough
2002-02-25 5:28 ` David Starner
2002-02-25 14:39 ` Robert Dewar
2002-02-26 7:56 ` Mats Karlssohn
2002-02-27 4:52 ` Robert Dewar
2002-02-27 16:44 ` Darren New
2002-02-27 14:29 ` David Starner
2002-02-27 0:50 ` Adrian Hoe
2002-02-27 17:37 ` Jeffrey Carter
2002-02-25 18:46 ` Toshitaka Kumano
2002-02-27 4:54 ` Robert Dewar
2002-02-27 8:48 ` Dmitry A. Kazakov [this message]
2002-02-28 5:29 ` Adrian Hoe
2002-02-28 21:39 ` Florian Weimer
2002-02-27 1:09 ` Adrian Hoe
-- strict thread matches above, loose matches on Subject: below --
2002-02-28 6:37 Christoph Grein
2002-02-28 22:56 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox