[bfprog] Unregistering Handlers
"Einar S. Idsø"
esi at itk.ntnu.no
Mon Jul 25 02:17:56 PDT 2005
Ah, that is really cool! I didn't know you could split a "function
object" into parts like this and "cancel" individual parts - good idea!
I'll just pretend it was my suggestion that led you to this solution,
which should ensure my happines for the rest of the day ;)
Einar
> I eventually figured out a byzantine way around the problem, at least
> for my purposes:
>
> http://bf2.fun-o-matic.org/index.php/Cookbook:Dynamically_Changing_an_Event_Handler
> The method I came up with recognizes that I can't do anything about the
> original handler function object, but I *can* swap out the code object
> inside of it. It doesn't result in the handler becoming unregistered,
> but what I was really after was a way to replace a standard handler with
> one of my own, anyway, so this fits the bill.
More information about the BFProg
mailing list