Jan. 18, 2011
11:34 a.m.
There is no such priority in smalltalk. + / - * are just normal binary messages - they take precedence over keyword messages and are second in line after unary ones. And everything is executed left to right so 5 is an expected answer here. Regards, Stanislav Paskalev On Tue, Jan 18, 2011 at 1:29 PM, Noury Bouraqadi <bouraqadi@gmail.com> wrote:
5 is the surprising answer of the expression: 6 + 4 / 2
It should be 8 But, I got 5 in both 1.1 and 1.2.
Noury