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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,eda0a7cd6069ee4 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Type mess in Ada standard library Date: 1999/07/21 Message-ID: <7n5cp9$89b$1@nnrp1.deja.com>#1/1 X-Deja-AN: 503667422 References: <7n1uu4$so8$1@pegasus.csx.cam.ac.uk> <7n32tt$cio$1@nnrp1.deja.com> <7n41v3$j6$1@pegasus.csx.cam.ac.uk> X-Http-Proxy: 1.0 x39.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Jul 21 21:06:59 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-07-21T00:00:00+00:00 List-Id: In article <7n41v3$j6$1@pegasus.csx.cam.ac.uk>, mgk25@cl.cam.ac.uk (Markus Kuhn) wrote: > Robert Dewar writes: > |> I would have liked to see an attribute, call it for now > |> > |> typ'Anonymous_Access Just to be clear I would ONLY allow this in subprogram formals, and I would be quite happy to restrict it to those which had foreign conventions, otherwise I am afraid it would be horribly overused. > That sounds like a very good idea to me, and adding this in > GNAT would certainly be a valuable contribution. I am not so sure, I am afraid it would be misused > Would it at the same time also be possible to add anonymous > arrays? > > typ'Array(0..255,0..255) -- anonymous 64k 2D array of typ > typ'Array(<>,<>,<>) -- any 3D array of typ In fact it is *exactly* this question that makes me think that it is a bad idea to introduce the anonymous access type. If people simply think of this as a way to weaken typing (as in the above array proposal), rather than as a way to solve a particular problem in genericity at the interfacing level, I am afraid that such features can do more harm than good. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.