xxxxxxxxxx
:
const(int)* gInts;
void main() {
auto s = MyStruct(10);
gInts = s.ints;
}
struct MyStruct
{
import core.stdc.stdlib;
int* ints;
this(int size) { ints = cast(int*) malloc(size); }
~this() scope { free(ints); }
scope ptr(this This)() { return ints; }
}