Contents
This chapter describes various improvements concerning access types for Ada 2005.
Ada 2005 permits all access types to be access to constant types and to indicate that null is not an allowed value in all contexts. Anonymous access types are permitted in more contexts than just as access parameters and discriminants; they can also be used for variables and all components of composite types. This further use of access types is of considerable value in object oriented programming by reducing the need for (unnecessary) explicit type conversions.
A further major improvement concerns access to subprogram types which are now allowed to be anonymous in line with access to object types. This permits so-called “downward closures” and allows the flexible use of procedures as parameters of subprograms and thereby avoids excessive use of generic units.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2008 John Barnes Informatics
About this chapter
Cite this chapter
Barnes, J. (2008). Access Types. In: Ada 2005 Rationale. Lecture Notes in Computer Science, vol 5020. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-79701-2_3
Download citation
DOI: https://doi.org/10.1007/978-3-540-79701-2_3
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-79700-5
Online ISBN: 978-3-540-79701-2
eBook Packages: Computer ScienceComputer Science (R0)