Re: Bug in 2.5 for linux?
- Posted by Chris Bensler <bensler at nt.net> Oct 13, 2006
- 503 views
Robert Craig wrote: > > I think you have run into a quirky situation where > the semantics changed slightly between 2.5 and earlier releases. > Does this section of the 2.5 manual apply to you? > > "Subscripting and function side-effects: In an assignment statement, > with left-hand-side subscripts: > > lhs_var[lhs_expr1][lhs_expr2]... = rhs_expr > > the expressions are evaluated, and any subscripting is performed, > from left to right. It is possible to have function calls in the > right-hand-side expression, or in any of the left-hand-side expressions. > If a function call has the side-effect of modifying the lhs_var, > it is not defined whether those changes will appear in the > final value of the lhs_var, once the assignment has been completed. > To be sure about what is going to happen, perform the function call > in a separate statement, i.e. do not try to modify the lhs_var in two > different ways in the same statement. Where there are no left-hand-side > subscripts, you can always assume that the final value of the lhs_var > will be the value of rhs_expr, regardless of any side-effects that > may have changed lhs_var." > > Regards, > Rob Craig > Rapid Deployment Software > <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a> Yes, SymTab[id][SYM_NEXT] is being assigned in symLink() Chris Bensler ~ The difference between ordinary and extraordinary is that little extra ~