From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public From: nmm1@cus.cam.ac.uk (Nick Maclaren) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/02 Message-ID: <610dd5$ia0$1@lyra.csx.cam.ac.uk>#1/1 X-Deja-AN: 277315016 Sender: nmm1@taurus.cus.cam.ac.uk (Nick Maclaren) References: <6108a1$157@news-rocq.inria.fr> Organization: University of Cambridge, England Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article <6108a1$157@news-rocq.inria.fr>, harley@pauillac.inria.fr (Robert Harley) writes: |> Nick Maclaren (nmm1@cus.cam.ac.uk) writes: |> >[...] The biggest problem with attempting this is that you can |> >only 'const qualify' at the top level and, for efficient code-generation, |> >you need to do it at other levels. |> |> Huh? What's wrong with 'double const*const*const triMat'? How do you get a 'double *** triMat' to that? You have to put a cast in, which essentially says "don't do ANY checking", and would be equally happy with a 'double ** triMat' or 'double **** triMat' argument. |> >I believe that the new 'restrict' in |> >C9X is a sort of recursive 'const', but have not seen a specification. |> |> The object accessed via pointers based on a given restricted pointer |> is only accessed in that way. No recursive 'const' in sight. Oh, hell. Well, that's not going to help a lot then, except for the simplest of cases (which, admittedly, do include the BLAS). Nick Maclaren, University of Cambridge Computer Laboratory, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679