Map
Index
Random
Help
Topics
th

Topic: input or output parameters

topics > computer science > data > Group: parameters



Topic:
parameter passing by reference
Topic:
parameter passing by value-result

Summary

In procedure declarations, parameters can be declared input only (by value), output only (by reference), or input-and-output. With functions one parameter is defined as the function's result. It corresponds to a temporary variable in the caller's environment. (cbb 5/80)
Quotations
Quote: added result parameters to ALGOL 60; defined by copy rule, the literal replacement of a formal parameter by the actual parameter [»wirtN6_1966]
QuoteRef: nappRB2_1976 ;;26 parameters may be expression (input only) variable (input or output) and output (variable only)
QuoteRef: simscrip_1971 ;;64 in calls separates "given" (or subscript indices) parameters and "yielding" parameters
QuoteRef: snowRA_1973 ;;65 specifying which parameters may be changed in a procedure ("varying")
QuoteRef: cbb_1973 ;;10/6/76 vpi;f could evaluate expression argument before(input) or after (output) call

Related Topics up

Topic: parameter passing by reference (11 items)
Topic: parameter passing by value-result
(10 items)

Updated barberCB 7/04
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.