1. Re: Rob: Q: Euphoria 2.6 + PD source bug (important)
- Posted by Robert Craig <rds at RapidEuphoria.com> Mar 30, 2005
- 464 views
Vincent wrote: > Error Message: > .\play_game.ew:941 in function play_game() > subscript value 3 is out of bounds, reading from a sequence of length 2 > > Line that leads to failure: > > particles[i][3..4] *= .95 > > Me and Liquid Nitrogen have determinded the bug is located in execute.e > (backend) with PD intepreter that this routine is where its located, > though we could be wrong.. > > Perhaps check this.. > > procedure opPASSIGN_OP_SLICE() > -- var[subs] ... [i..j] op= expr > object x > > a = Code[pc+1] > x = val[a] > b = Code[pc+2] > if val[b] > length(x) or val[b] < 1 then > RTFatal( > sprintf("subscript value %d is out of bounds, reading from a sequence of > length %d", > {val[b], length(x)})) > end if > c = Code[pc+3] > target = Code[pc+4] > lhs_seq_index = val[a][1] > lhs_subs = val[a][2..length(val[a])] > Code[pc+10] = Code[pc+1] > val[target] = var_slice(val[lhs_seq_index], lhs_subs, val[b], val[c]) > pc += 5 > end procedure Yes, it's a bug in the PD source, but not in the normal interpreter, translator or binder. I'll look into it, and post a correction. Thanks for reporting it. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com