Abstract
A subprogram is a program unit or intrinsic operation whose execution is invoked by a subprogram call. There are two forms of subprogram: procedures and functions. A procedure call is a statement; a function call is an expression and returns a value. The definition of a subprogram can be given in two parts: a subprogram declaration defining its interface, and a subprogram_body defining its execution. Operators and enumeration literals are functions.
A callable entity is a subprogram or entry (see Section 9). A callable entity is invoked by a call; that is, a subprogram call or entry call. A callable construct is a construct that defines the action of a call upon a callable entity: a subprogram_body, entry_body, or accept_statement.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Authors/Editors
About this chapter
Cite this chapter
Tucker Taft, S., Duff, R.A., Brukardt, R.L., Ploedereder, E., Leroy, P., Schonberg, E. (2013). Subprograms. In: Taft, S.T., Duff, R.A., Brukardt, R.L., Ploedereder, E., Leroy, P., Schonberg, E. (eds) Ada 2012 Reference Manual. Language and Standard Libraries. Lecture Notes in Computer Science, vol 8339. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-45419-6_6
Download citation
DOI: https://doi.org/10.1007/978-3-642-45419-6_6
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-45418-9
Online ISBN: 978-3-642-45419-6
eBook Packages: Computer ScienceComputer Science (R0)