Re: "Nasty" bug
- Posted by irv Feb 24, 2019
- 2171 views
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")