From: mgk25@cl.cam.ac.uk (Markus Kuhn)
Subject: Re: Type mess in Ada standard library
Date: 1999/07/21
Date: 1999-07-21T00:00:00+00:00 [thread overview]
Message-ID: <7n41v3$j6$1@pegasus.csx.cam.ac.uk> (raw)
In-Reply-To: 7n32tt$cio$1@nnrp1.deja.com
Robert Dewar <robert_dewar@my-deja.com> writes:
|> It is definitely the case that it is occasionally annoying to
|> have to create named access types, when what you really want
|> is the anonymous access type created by an access parameter.
[...]
|> I would have liked to see an attribute, call it for now
|>
|> typ'Anonymous_Access
|>
|> that created an anonymous access type to "typ". Indeed we
|> have discussed adding such an attribute to GNAT, particularly
|> for helping to solve the binding generation problem, where
|> such access types are common.
That sounds like a very good idea to me, and adding this in GNAT
would certainly be a valuable contribution. (It would be even nicer
if this were not a product-specific proprietary extension of the
language but part of the core language.)
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
or something like that, which wherever they are used lead to identical
types iff the parameters are identical.
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
next prev parent reply other threads:[~1999-07-21 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-20 0:00 Type mess in Ada standard library Markus Kuhn
1999-07-20 0:00 ` Michael F. Yoder
1999-07-21 0:00 ` Robert Dewar
1999-07-21 0:00 ` Markus Kuhn [this message]
1999-07-21 0:00 ` Robert Dewar
1999-07-22 0:00 ` Bill Findlay
1999-07-23 0:00 ` Stanley R. Allen
1999-07-21 0:00 ` Aidan Skinner
1999-07-22 0:00 ` Bill Findlay
1999-07-23 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox