From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2fefe7705ed3d0e2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.85.3 with SMTP id d3mr1218363paz.18.1344848482214; Mon, 13 Aug 2012 02:01:22 -0700 (PDT) Path: p10ni52825203pbh.1!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!novia!feeder3.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!80.86.168.138.MISMATCH!news-feed.eu.lambdanet.net!texta.sil.at!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Programmer defined arrays Date: Mon, 6 Aug 2012 16:55:55 +0200 Organization: cbb software GmbH Message-ID: <1wtkxcynwwbow.ovthmir96tem.dlg@40tude.net> References: <501fd4a7$0$9524$9b4e6d93@newsspool1.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Bytes: 1563 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-08-06T16:55:55+02:00 List-Id: On Mon, 06 Aug 2012 16:28:59 +0200, Georg Bauhaus wrote: > IIUC, an array can be seen as a mapping > > (Index_Type[1], ..., Index_Type[n]) -> Component_Type > > where n is finite. > Similarly, a function can be seen as a mapping (*) > > (Param_Type[1], ..., Param_Type[m]) -> Return_Type It is a too simplified view. Array is an interface of which the mapping is only one of many operations. > In this light, why should we be given means to express how arrays > should be translated into instructions? We have these means: overriding function ... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de