[Main page] [Overview]     /basic /delegation

SYNOPSIS
#include <defs>
inherit /basic/delegation;

FILE
/basic/delegation.c

DESCRIPTION
A module which modifies the calling conventions in two ways and kicks
in whenever an attempt is made to call a non-existing function in
the inheriting object.
For a call to function "fun" an attempt is first made to call
"fallback_fun". If the attempts fails, it walk through a list of
delegates and attempt to call the function in the delegates. Before
the function is called in the delegate, "set_current_delegator" is
called and the delegating object is passed to it, so that the delegate
may know which object it is delegating for.



SUBTOPICS
add_delegate   get_delegates   remove_delegate