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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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.216.239.205 with SMTP id c55mr676719wer.12.1344848954301; Mon, 13 Aug 2012 02:09:14 -0700 (PDT) Path: n2ni107046683win.0!nntp.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news-feed.eu.lambdanet.net!news.bcc.de!newsfeeder.ewetel.de!ecngs!feeder2.ecngs.de!78.46.240.70.MISMATCH!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Programmer defined arrays Date: Mon, 06 Aug 2012 19:26:25 +0200 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <87mx289bjy.fsf@adaheads.sparre-andersen.dk> References: <501fd4a7$0$9524$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 79.138.228.124.bredband.3.dk Mime-Version: 1.0 X-Trace: munin.nbi.dk 1344273986 15874 79.138.228.124 (6 Aug 2012 17:26:26 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 6 Aug 2012 17:26:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:qdALSQ4BtE9biQwX3Rub9FH5Sx8= Content-Type: text/plain; charset=us-ascii Date: 2012-08-06T19:26:25+02:00 List-Id: 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 In practice functions of _discrete_ arguments may be seen as _constant_ arrays. You can not assign a value to a function, and arrays can only be declared with discrete indexes. > In this light, why should we be given means to express how arrays > should be translated into instructions? What means do we have to express how arrays should be translated into instructions? Greetings, Jacob -- "Very small. Go to sleep" -- monster (not drooling)