Category:Smalltalk: Difference between revisions
Content added Content deleted
(→Other) |
(→Other) |
||
Line 422: | Line 422: | ||
=== Other === |
=== Other === |
||
<lang smalltalk>expr1 . expr2 "statements within a method or block are separated by a |
<lang smalltalk>expr1 . expr2 "expressions (statements) within a method or block are separated by a full stop." |
||
⚫ | |||
foo := bar "assignment; let foo refer to the object to which bar refers to |
foo := bar "assignment; let foo refer to the object to which bar refers to |
||
Line 430: | Line 432: | ||
^ a + 1 "return; the value of 'a+1' as the value of the current method invocation." |
^ a + 1 "return; the value of 'a+1' as the value of the current method invocation." |
||
⚫ | |||
|a b c| "local variables; introduces 'a', 'b' and 'c' in the current scope |
|a b c| "local variables; introduces 'a', 'b' and 'c' in the current scope |