Page 1 of 1 1
Topic Options
#78980 - 2002-06-20 11:49 AM BUG: Operator precedence changed.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4945
Loc: Leatherhead, Surrey, UK
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 ]

Top
#78981 - 2002-06-21 12:04 AM Re: BUG: Operator precedence changed.
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

For the complete story see topic

Problem with operator not (unexpected evaluation of expression

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#78982 - 2002-06-20 01:18 PM Re: BUG: Operator precedence changed.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22335
Loc: OK
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

_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 59 anonymous users online.
Newest Members
diefnet, Arogya, gkustra, emnipetro, Hirze
17644 Registered Users

Generated in 0.027 seconds in which 0.01 seconds were spent on a total of 12 queries. Zlib compression enabled.