Hello Ken, > example, if it is necessary to stack operand results along the way. In this > case the functions may be evaluated right to left so that they can be taken > from the stack in reverse order (left to right) to evaluate the expression.
Yes thanks. A simple look at the ASM output shows this. The atoi function is executed from left to right and the result value is pushed onto the stack. Then the procedure Test gets them from the stack in reverse order. As Horváth Márton say in his reply, declaring Test(...); pascal; solves it. however for future maintenance it seems better to not let the compiler push it on the stack but first store the value in local stack variables and then give them to the Test function. thanks all for the help and info! --- Rgds, Wilfried http://www.mestdagh.biz __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk