[DGD] A bug and a question about reference counting and DGD internals

Foo the Xyzzy Avenger foothexyzzy at gmail.com
Mon May 7 20:53:42 CEST 2007


Hi, thanks for the prompt reply!

On 5/7/07, Felix A. Croes <felix at dworkin.nl> wrote:
> issue is not properly documented.  To store a value in an array or
> mapping, you are supposed to use DGD_ARRAY_ASSIGN and
> DGD_MAPPING_ASSIGN, which will take care of increasing reference
> counters when appropriate.

Ah, stupid me, I didn't even notice these routines.  Looking at the
code for d_assign_elt() it seems that DGD_ARRAY_ASSIGN is exactly the
sort of interface I was looking for, as it frees me entirely from
worrying about references.

> The DGD extension interface hasn't seen a lot of testing yet, and you
> may run into more problems.  Please report them all!

You can count on it. :)  Thanks again!



More information about the DGD mailing list