fork download
  1. import std.stdio;
  2.  
  3. void main()
  4. {
  5. auto o = new Object;
  6. auto a = [o];
  7. auto b = [o];
  8. writeln(a is b);
  9. writeln(a.length is b.length);
  10. writeln(a[0] is b[0]);
  11. }
Success #stdin #stdout 0.02s 2120KB
stdin
Standard input is empty
stdout
false
true
true