Method Pike.get_return_type()


Method get_return_type

type|zero get_return_type(type fun_type)
type|zero get_return_type(type fun_type, mapping state)

Description

Check what a function of the type fun_type will return if called with no further arguments.

Parameter state

State mapping. This mapping may be used by attribute handlers to store state between different arguments. Note that attribute handlers may alter the contents of the mapping.

Returns

Returns the type of the returned value on success

Returns 0 (zero) on failure.