RE: compare() and equal()

new topic     » topic index » view thread      » older message » newer message

Hi Kat,
I just did this ...

? compare({1,2,{3,{4}},5}, {2-1,1+1,{3,{4}},6-1})
? equal({1,2,{3,{4}},5}, {2-1,1+1,{3,{4}},6-1})

...
and I got displayed ...

0
1

which is exactly what I'd expect. There was no error message or the like.

> Also, if equal() is true, it returns boolean true, but if
> compare() is true, it returns
> boolean false.
>

But compare() can *never* be true as it does not return a true/false
indicator. It isn't meant to. It just tells if parameter#1 is less than,
equal to, or greater than parameter#2. And this is not a boolean thing.

-----------
cheers,
Derek Parnell

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu