Tell me I'm not crazy
Tereza Snyder
tereza at califex.com
Tue Sep 20 12:26:18 EDT 2011
NO you cant:
(from the docs)
Note: Arrays in LiveCode are un-ordered. This means in particular that encoding two arrays will not necessarily produce the same result, even if the arrays had the same elements. To compare two arrays, simply use the = operator directly on them rather than encoding them first.
t
On Sep 20, 2011, at 11:16 AM, Andre Garzia wrote:
> Tereza,
>
> No it is not crazy...
>
> can we assume that arrayencode always encode the same way? because this way
> you can simply arrayencode both values and compare them...
>
> andre
>
> On Tue, Sep 20, 2011 at 12:45 PM, Tereza Snyder <tereza at califex.com> wrote:
>
>>
>> Is it crazy to assume that if "=" works, then "<>" (or in other languages,
>> "!=") would also?
>>
>>
>> On Sep 20, 2011, at 10:27 AM, Robert Brenstein wrote:
>>
>>> On 19.09.2011 at 16:04 Uhr -0500 Tereza Snyder apparently wrote:
>>>> Look at the docs for "="; LiveCode CAN compare arrays using "=".
>>>
>>> Ah, something new learned; yes, to quote the docs:
>>>
>>> The ability to compare two arrays using = was added in version 3.5.
>> Previously, comparing two arrays would have converted both arrays into the
>> empty string, and always returned true.
>>>
>>> The docs mention comparing arrays only for the = operator.
>>>
>>> Robert
>>>
>>> _______________________________________________
>>> 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
>>
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> http://www.andregarzia.com All We Do Is Code.
> _______________________________________________
> 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