A string doesn't equal itself

Jeanne A. E. DeVoto revolution at jaedworks.com
Sun Apr 8 01:15:46 EDT 2007


At 9:24 PM -0600 4/7/2007, Brent Anderson wrote:
>It's very odd that revolution doesn't interpret the two strings the
>same (and, therefore, as equal). It makes you wonder what's going on
>under the hood.


I'm guessing it's an overflow problem, because it varies depending on 
the numbers used. For example, if the number on the left is 1, the 
comparison fails only if the number on the right is greater than 308. 
Increasing the number on the left decreases the critical number on 
the right.

Yeesh. It looks like all three of us are on Macs. Has anyone tried 
this on an Intel chip and/or Windows?
-- 
jeanne a. e. devoto ~ revolution at jaedworks.com
http://www.jaedworks.com



More information about the use-livecode mailing list