Category:Smalltalk: Difference between revisions
Content added Content deleted
m (→Message Sends) |
m (→Other: format) |
||
Line 350: | Line 350: | ||
=== Other === |
=== Other === |
||
⚫ | |||
<lang smalltalk> |
|||
⚫ | |||
foo := bar "assignment; let foo refer to the object to which bar refers to (at that particular point in time)" |
foo := bar "assignment; let foo refer to the object to which bar refers to (at that particular point in time)" |
||
Line 362: | Line 361: | ||
r msg1; msg2 "so called cascade; first send msg1 to r, ignoring the return value, then send msg2. |
r msg1; msg2 "so called cascade; first send msg1 to r, ignoring the return value, then send msg2. |
||
Value of expression is result from last message. |
Value of the expression is result from last message. |
||
Syntactic sugar for (t := r) msg1. t msg2 |
|||
</lang> |
|||
but an expression, not a statement (and with an anonymous variable 't')"</lang> |
|||
=== Class Definition === |
=== Class Definition === |