Hello Simen,
simendsjo <simen.end...@pandavre.com> wrote:Well, no.Ok, thanks. Does this mean this equivalent then? int[] a = [1,2,3]; int[] b = a[0..1]; assert(a !is b); assert(a.ptr == b.ptr && a.length == b.length);
both asserts will fail (a.length == 3 != b.length == 1)
But what you probably mean, is. ( a is b ) == ( a.ptr == b.ptr && a.length == b.length )
I think that is correct. -- ... <IXOYE><