Nested array comparisons
dunbarx at aol.com
dunbarx at aol.com
Sat Mar 23 16:36:53 EDT 2013
Hi.
I thought if you refer to an array the way you did, you would always get "empty" for each, and that would always be a false positive. I always thought, at the array variable level, evaluation comes to nothing at all.
So I would have thought you would have to combine the arrays first, and then compare them, after they are no longer array variables, but rather ordinary ones. I assume that it makes no difference what you use as the delimiters, since you will not be working with the array data, just comparing them.
Craig Newman
-----Original Message-----
From: David Beck <david at rotundasoftware.com>
To: use-livecode <use-livecode at lists.runrev.com>
Sent: Sat, Mar 23, 2013 3:45 pm
Subject: Nested array comparisons
If one has two nested arrays, can you compare the two for equality by doing
if deepArray_1 is deepArray_2 then
-- do whatever
end if
It looks like this does not work. That is, you get false positives at times when
the two arrays are in fact not equal. Can not find documentation to determine
whether this is bug of the expected behavior!
David Beck
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list