[DGD] Undefined Functions

Felix A. Croes felix at dworkin.nl
Tue Apr 23 12:36:26 CEST 2013


Blain <blain20 at gmail.com> wrote:

> Addendum:
>
> I was thinking of compile_lib() when I wrote compile() in my previous note.
>  Sorry for any confusion.
>
> --Blain
>
>
> On Mon, Apr 22, 2013 at 8:12 PM, Blain <blain20 at gmail.com> wrote:
>
> > In my objectd, when an object is compiled, I issue a 0-second call-out to
> > inspect its undefined functions and warn the creator if any are found.  I
> > had to use a call-out because the object (if not a clone, of course) does
> > not exist at the moment compile() is cloned.  Is this truly the earliest I
> > can detect undefined functions in an object (that is, after the execution
> > round including the compile() call to objectd completes)?  I just want to
> > be sure that my implementation is as optimal as it can be.

The object does exist when compile_lib() is called.  Even if the
object is recompiled, status(obj)[O_UNDEFINED] will return the undefined
functions in the new program, which will become active at the end of the
task.

There is no need to use a callout.

Regards,
Felix Croes



More information about the DGD mailing list