Attribute Mechanism_Code (GNAT Reference Manual) (original) (raw)
Next: Attribute Null_Parameter, Previous: Attribute Max_Integer_Size, Up: Implementation Defined Attributes [Contents][Index]
4.42 Attribute Mechanism_Code ¶
func'Mechanism_Code
yields an integer code for the mechanism used for the result of function func
, andsubprog'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