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..)
Ramon via Digitalmars-d-learn Fri, 22 Apr 2016 18:15:47 -0700
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..)