Lance Dillon wrote:
>The closest I could see is to not really have the functions directly, I guess, 
>but an mapping of functions, and overload `() so that it pulls the function 
>from the mapping, then you could easily replace the function by replacing the 
>reference in the mapping.
>The replaced function would be locator collected,or you could implement it as 
>a list of hooks.
>Could be transparent to calling code and be effectively the same thing, even 
>if implemented differently.
>Unless I am misunderstanding how `() works.

I think that method breaks at the point where you need to manipulate "this"
to point to the main class.

Ah well, I am restructuring the code so that the live class in question
is being referenced through a variable.  It seems that is the only
practical solution.
-- 
Stephen.

Reply via email to