Jan. 18, 2011
11:40 a.m.
On 18 January 2011 12:29, 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.
this is first thing all smalltalkers learn: smalltalk syntax does not using math operators precedence rules. because #+ and #/ is just selectors and you can put any behavior to it not nearly related to math.
Noury
-- Best regards, Igor Stasenko AKA sig.