chartsEngine bug with version 10 of LC
scott at elementarysoftware.com
scott at elementarysoftware.com
Tue Dec 28 20:13:18 EST 2021
I’m still a little unclear about exactly what is going on here.
put “foo” < 9 -- returns “false”
put “foo” > 9 -- returns “true”
put “9foo” < 9 -- returns “false”
put “9foo” > 9 -- returns “true”
put “9.foo” < 9 -- returns “false”
put “7.foo” < 9 -- returns “true”
put “77.foo” < 9 -- returns “true”
put “9.foo” > 9 -- returns “true”
put “7.foo” > 9 -- returns “false”
put “77.foo” > 9 -- returns “false”
--
Scott Morrow
Elementary Software
(Now with 20% less chalk dust!)
web https://elementarysoftware.com/
email scott at elementarysoftware.com
booth 1-360-734-4701
———————————————————————————
> On Dec 28, 2021, at 9:27 AM, Curry Kenworthy via use-livecode <use-livecode at lists.runrev.com> wrote:
>
>
> Scott:
>
> > why "9.6.6-rc-1” evaluates as not less than 5
> > but "10.0.0-dp-1” evaluates to less than 5.
>
> That's the tricky thing about dotted versions;
> easy to forget and set up a text comparison:
>
> "9" > "5"
> "1" < "5"
>
> Once you have two dots, or an rc/dp, it's a string.
> They seem to compare perfectly...until you pass 9.
> That's why I used integer versions for some libs.
>
> "10.0.0" < "5"
>
> (I should check my code too; thanks for this reminder!)
>
> Best wishes,
>
> Curry Kenworthy
>
> WordLib: Import MS Word and OpenOffice documents in LiveCode!
> http://livecodeaddons.com/wordlib.html
>
> Christian LiveCode Training and Consulting
> http://livecodeconsulting.com/
More information about the use-livecode
mailing list