Yes, Binary messages always involves two objects, so in your example
there's two message sends. Be aware also that there's no arithmetic
specific precedence rules  ( 4  * 5 + 2  will return 22). The precedence is
consistent among the whole language (unary->binary->keyworded).

On Wed, Jan 25, 2012 at 7:55 PM, Garret Raziel <[email protected]> wrote:

> So, keyword messages are slightly different from binary messages, because
> 5+4*3 doesn't invoke "+*" message so I don't have to write "(5+4)*3". If I
> had SmallInteger>>#multiplyBy and SmallInteger>>#add, I should use
> parenthesis "(5 add: 3) multiplyBy: 3".
>

Reply via email to