A string doesn't equal itself
    J. Landman Gay 
    jacque at hyperactivesw.com
       
    Thu Apr 12 15:51:22 EDT 2007
    
    
  
Richard Gaskin wrote:
> I can understand attempting to coerce to numbers if two string literals 
> have an arithmetic operator between them, e.g.:
> 
>   "5" + "5"
> 
> ...but if quoted and merely checking for equivalence, offhand I can 
> think of no case where these wouldn't be true:
> 
>   "5" is "5"
> 
>   "55e555" is "55e555"
> 
>   "a" = "a"
The only time numbers, quoted or not, are not equivalent is in overflow 
cases, and that is being fixed. The above examples would all return true 
even now (except for the 55e555 example, which is an overflow case.) So 
I don't think the quotes will be an issue.
-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com
    
    
More information about the use-livecode
mailing list