Are structs saved in multi-thread delegate call?

Ramon via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 22 18:11:49 PDT 2016


mmm, I figured the problem, but don't know how to solve it.
my struct has a destructor which clears itself:

struct json_value
{
   ~this() { .ValueClear(&data); }
}

so how I can I put a struct in the heap? (not in the stack, as is 
the default..)


More information about the Digitalmars-d-learn mailing list