bugs in union and intersect?

Ken Ray kray at sonsothunder.com
Tue Jun 28 09:24:44 EDT 2011


> They both fail with caseSensitive true.
> 
> on mouseUp
>    local a,b,c,d
>    set the caseSensitive to "true"
>    put 1 into a["a"]
>    put 2 into b["b"]
>    put 3 into b["B"]
>    union a with b
>    -- missing a["b"]
>    
>    put 1 into c["c"]
>    put 2 into c["C"]
>    put 3 into d["c"]
>    intersect c with d
>    -- should not have c["C"] 
> end mouseUp
> 
> 
> Confirmation?
> 
> Bug report?  Enhancement request?  Warnings in documentation?

Confirmed, but caseSensitive is only used for text comparisons (as stated in
the docs), and the key to an array is apparently not "text" so it has no
effect. So if anything I'd say "warning in documentation"...

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/






More information about the use-livecode mailing list