411 REFERENCE · Wikibooks
Ada Programming/Attributes/'Mechanism Code
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Description
func'Mechanism_Code yields an integer code for the mechanism used for the result of function func, and subprog'Mechanism_Code (n) yields the mechanism used for formal parameter number n (a static integer value, with 1 meaning the first parameter) of subprogram subprog. The code returned is:
1
by copy (value)
2
by reference