Richard H.Administrator
(KiX Supporter)
2002-06-20 11:49 AM
BUG: Operator precedence changed.

code:
$x=not 0 and not 1
? $x

Returns "0" under KiXtart 4.00, but "1" under KiXtart 4.10 RC2.

[ 20 June 2002, 11:59: Message edited by: Richard Howarth ]


MCA
(KiX Supporter)
2002-06-21 12:04 AM
Re: BUG: Operator precedence changed.

Dear,

For the complete story see topic

Problem with operator not (unexpected evaluation of expression

greetings.


LonkeroAdministrator
(KiX Master Guru)
2002-06-20 01:18 PM
Re: BUG: Operator precedence changed.

a peace of a post from ruud gives pretty much so I place it here:
quote:
I in fact changed the precedence of NOT in 4.10 (it was broken before), but clearly not good enough yet. The 'not 0 and not 1' was effectively being evaluated as 'not (0 and not 1)', which obviously is not the same thing at all...

I've fixed this in the final build (due out soon).

Thanks for the heads-up on this one!

--Ruud