[DGD] Create in clones

Felix A. Croes felix at dworkin.nl
Tue Jan 8 19:48:41 CET 2002


Shevek <shevek at btinternet.com> wrote:

> Do clones have their create() function called on cloning if the create() is 
> static?
> Seem to vaguely remember a thread about this on the mailing list but I 
> can't find it.
> Problem is that I want to set up some variables for clones in the create() 
> function but the code never seems to be called.
>
> eg.
> static void create(int clone){
>      if (clone) {
>          some_mapping=([ ]);
>      }
> }
>
> Is it the code, me thinking it works differently than it actually does? Or 
> is it a DGD thing that was fixed (As my memory keeps trying to tell me)?
> If it was fixed which patch do I have to go to? This is in 1.2p1

This was a bug in the experimental line, that was later fixed.  It doesn't
affect 1.2p1, so I'm not sure what causes the problems you are experiencing.

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



More information about the DGD mailing list