A string doesn't equal itself

Richard Gaskin ambassador at fourthworld.com
Mon Apr 9 01:59:35 EDT 2007


Mark Wieder wrote:
> 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.

Whether a string or a number, the symbol was the same on both sides.

A=A.

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the use-livecode mailing list