![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Suppose, for example, that you want to store 9
as the value
associated with the key, #FatRatio
, in the Smalltalk
dictionary. You simply send a at:put
: message as follows:
Workspace
*-- Tells Smalltalk the name of the key
|
v
Smalltalk at: #FatRatio put: 9
^ ^ ^
| | *------*
| | |
| | *-- Tells Smalltalk the value to be stored
| |
| *-- Hash mark is explained in Segment 204
|
*-- The receiver