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

Felix A. Croes felix at dworkin.nl
Sat Feb 16 16:45:50 CET 2002


Erwin Harte <harte at xs4all.nl> wrote:

> On Fri, Feb 15, 2002 at 11:44:39PM -0800, Noah Lee Gibbs wrote:
> [...]
> > 
> >   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?

Furthermore, suppose that you are recompiling several objects that
depend upon eachother.  If each recompilation goes into effect instantly,
things might go wrong before the last one can be recompiled.

Regards,
Dworkin
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list