Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.misc Subject: Re: Re: Aggressive optimization vs HLL's Message-ID: <7226:Nov1521:52:4690@kramden.acf.nyu.edu> Date: 15 Nov 90 21:52:46 GMT References: <8960024@hpfcso.HP.COM> <6054@lanl.gov> Organization: IR Lines: 19 In article <6054@lanl.gov> jlg@lanl.gov (Jim Giles) writes: > No, actually it doesn't. Not if the language has a "whole array" syntax. > In such a language, you pass the _specific_ section of the array that > the next procedure needs. Are you implying that Ada, which has this feature (under the somewhat misleading name of ``slicing''---it's a type of slicing, but a very restricted type), suffices for array shifts? How do you take an array x indexed from 0 to 10 and pass it to a procedure indexed from -5 to 5 (presumably with a pointer to the 0th)? I don't see a way to do this. If it's there, my apologies; this is what I get for not spending a lot of time with a language before talking about it. In that case the word ``Ada'' should be deleted from my postings on arrays versus pointers. But I just don't see how it's done. ---Dan