Hi All,

I have come across a strange bug with arrays so I am posting it here to bring it to Ruud's attention. The following code shows the problem.

Code:
Break On 

$a = 2,3,4,5,6,7
$b = "a","b","c","d","e","f"
? $a[1] ; 3
? $b[3] ; "d"
; $b[$a[1]] should equal "d"
; KiX evaluates instead of assigning in the next 2 lines
? $b[$a[1]] = "d" ;True
? $b[$a[1]] = "j" ;False
? $b[$a[1]] ;hasn't been changed to "j" it still equals "d"

Get $



Instead of assigning "j" to $b[$a[1]], KiX evaluates whether or not $b[$a[1]] equals "j". I believe this is incorrect behaviour.

Regards,

Richard


Edited by It_took_my_meds (2006-05-18 02:49 AM)