24. Introspection
24.1. Value inspection
24.2. Content inspection
- Method
get_weak_flag
intget_weak_flag(array|mapping|multisetm)- Description
Returns the weak flag settings for
m. It's a combination ofPike.WEAK_INDICESandPike.WEAK_VALUES.
24.3. Integer inspection
24.4. Function inspection
- Method
function_name
stringfunction_name(function(:void)|programf)- Description
Return the name of the function or program
f.If
fis a global function defined in the runtime0(zero) will be returned.- See also
function_object()
- Method
function_object
objectfunction_object(function(:void)f)- Description
Return the object the function
fis in.If
fis a global function defined in the runtime0(zero) will be returned.Zero will also be returned if
fis a constant in the parent class. In that casefunction_program()can be used to get the parent program.- See also
function_name(),function_program()
- Method
function_program
programfunction_program(function(:void)|programf)- Description
Return the program the function
fis in.If
fis a global function defined in the runtime0(zero) will be returned.- See also
function_name(),function_object()