Saturday, 24 October 2015

Pharo By Example Chapter 4

Everything is a message

(Except for syntax)

You cannot overload a message except with a message of the same kind (Unary, binary, keyword)

A message is the selector plus arguments (if there are arguments)

It is sent to a receiver
i.e. whatever is 'self' for the message

Binary messages only ever contain these characters:
+, −, * , /, &, =, >, |, <, ∼, and @

Precedence is always unary, then binary then keyword

No comments:

Post a Comment