version(none) void main() { float[2] f1 = [0, 0]; float[2] f2 = [0, 0]; bool ok = f1 == f2; import std.stdio; writeln(ok); } import std.stdio; struct VertexB { float[2] pos; } struct Hold { VertexB v; } void main() { Hold[1] h_a; Hold[1] h_b; assert(h_a[0].v.pos != h_b[0].v.pos); assert(h_a[0].v != h_b[0].v); assert(h_a[0] != h_b[0]); assert(h_a != h_b); h_a[0].v.pos = [0,0]; h_b[0].v.pos = [0,0]; assert(h_a[0].v.pos == h_b[0].v.pos); assert(h_a[0].v == h_b[0].v); assert(h_a[0] == h_b[0]); assert(h_a == h_b); }