class Test { ubyte[] buf = new ubyte[1000]; }
void main() { auto a = new Test(); auto b = new Test(); assert(a.buf.ptr != b.buf.ptr); } This is bad, since; * It is not how C++ works * It introduces silent sharing of data * It's usually not what you wantShouldn't this at least generate a warning, or ideally not be allowed?