CODE
default
{
state_entry()
{
llOwnerSay(llList2CSV(["a" != "b", "b" != "a", "a" != "c", "c" != "a", "1" != "a"]));
}
}
In 1.8 the result of that script was: -1, 1, -2, 2, -48
Giving me reason to beleive the function is something like...
CODE
int not_equal_1_8(char * a, char * b)
{
int d = 0;
if(a != b)
for(int c = 0;a[c] && b[c] && (d = (a[c] - b[c])) == 0;++c);
return d;
}
In 1.9 the result of that script was: -1, 1, -1, 1, -1
Giving me reason to beleive the function is something like...
CODE
int not_equal_1_9(char * a, char * b)
{
int d = 0;
if(a != b)
for(int c = 0;a[c] && b[c] && (d = (a[c] - b[c])) == 0;++c);
return (d<0)?(-1):(d>0);
}
I would like the 1.8 functionality restored. Even though it is a bit bizzar.
But i'm only leaning slightly towards the 1.8 implementation. I'd be happy with what ever it is as long as it's documented what it's results will be.
I'd even be happy with.
CODE
int not_equal_1_9(char * a, char * b)
{
int d = 0;
if(a != b)
for(int c = 0;a[c] && b[c] && (d = (a[c] - b[c])) == 0;++c);
return (d != 0);
}
The functions above i release into public domain.