Re: "Nasty" bug

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

By removing the extraneous stuff, this shows the bug:

with trace 
trace(1) 
 
sequence our_place = {{0}, {{0,0,0,0,0}} } 
 
constant ball = 88 
 
function you(integer thing) 
  integer score = rand(5) 
 
   our_place[2][1][score] = thing 
   puts(1,"You ") ? our_place     
 
return score 
end function 
 
    puts(1,"Me 1 ") 
    ? our_place[2] 
     
    our_place[1][1]  +=  you( ball ) -- here is problem. 
     
    --integer x = you(ball) -- separating the steps works 
    --our_place[1][1] += x 
     
    puts(1,"Me 2 ") 
    ? our_place[2] 
     
    puts(1,"Done") 
                                   
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu