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 of Pike.WEAK_INDICES and Pike.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 f is a global function defined in the runtime 0 (zero) will be returned.

See also

function_object()


Method function_object

objectfunction_object(function(:void) f)

Description

Return the object the function f is in.

If f is a global function defined in the runtime 0 (zero) will be returned.

Zero will also be returned if f is a constant in the parent class. In that case function_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 f is in.

If f is a global function defined in the runtime 0 (zero) will be returned.

See also

function_name(), function_object()

24.5. Object inspection

24.6. Program inspection

24.7. Type inspection