A string doesn't equal itself

Mark Wieder mwieder at ahsoftware.net
Mon Apr 9 01:16:32 EDT 2007


Richard-

Sunday, April 8, 2007, 9:08:04 AM, you wrote:

> What's the BZ report # for this?

This isn't a bug, the way I see it. Strings should be quoted.
Backwards compatibility with HC still allows for unquoted strings, but
they can lead to this sort of trouble. "3" isn't the same as 3. And
numerical values will always be subject to the limits of digital
approximation of continuous values.

The problem Jacque ran into is that in not quoting the alphanumeric
string that represented a serial number she allowed the engine to
process the equality operator numerically. And gave it values beyond
those it could be expected to handle with a default margin of error.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list