Skip to main content

Access Types

  • Chapter
  • 359 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 5020))

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics