Ada Programming/Attributes/'Mechanism Code

Description
yields an integer code for the mechanism used for the result of function, and   yields the mechanism used for formal parameter number n (a static integer value, with 1 meaning the first parameter) of subprogram. The code returned is:


 * 1
 * by copy (value)


 * 2
 * by reference