Is "is" the same as ptr == ptr for arrays?

simendsjo simen.endsjo at pandavre.com
Sat Aug 7 08:33:44 PDT 2010


Is the following equalent?

int[] a;
int[] b = a;
assert(a is b);
assert(a.ptr == b.ptr);


More information about the Digitalmars-d-learn mailing list