[DGD] DGD Extension Interface

Felix A. Croes felix at dworkin.nl
Sun May 4 02:15:15 CEST 2003


"Kirk Smith" <ksmith at illiji.net> wrote:

> I've been encountering some difficult when working with the DGD Extension
> interface, and am wondering if anyone can either provide some clairifcation or
> insight. The primary issue I am presently having is that you cannot pass
> DGD_NIL_VALUE to any of the DGD_RETVAL_* functions. Is this the intended
> behavior? I would assume (perhaps wrongly) that you would be able to pass nil
> to all of them?

The DGD_RETVAL_* functions are return value constructors; for instance,
DGD_RETVAL_OBJ() constructs a return value of type DGD_TYPE_OBJECT from
an object of type DGD_OBJECT_T.  If you want to return a nil value, you
can simply do

    *retval = DGD_NIL_VALUE;

The nil value is a constant and does not have to be constructed.

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



More information about the DGD mailing list