[DGD] Object recompiled when objectd calls compile()?

Erwin Harte harte at xs4all.nl
Sat Feb 16 15:06:45 CET 2002


On Fri, Feb 15, 2002 at 11:44:39PM -0800, Noah Lee Gibbs wrote:
>   Hi.  I'm having an odd problem with my objectd, and I'm hoping one of
> you folks will have an idea how to solve it...
> 
>   My objectd will call an upgraded() method on an object being recompiled
> if one exists.  That's all well and good.
> 
[...]
> 
>   Short of having a call_out to call upgraded, does anybody here know a
> good way to have an upgraded() method call the new version of the function
> instead of the old one?  I've been recompiling twice when I care about the
> contents of the upgraded function as a workaround, but it gets tedious...

No, as far as I'm aware a call_out(..., 0) is the best approach for
that, _re_compiled code doesn't go into effect until the thread has
finished.  This may seem silly now but what if you're recompiling the
very object you are currently calling a function in?

Hope that helps,

Erwin.
-- 
Erwin Harte <harte at xs4all.nl>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list