The value of the method name is at:put:
# denotes a Symbol, which is a subclass of String. The difference between the
two is that two symbols with the same value will actually be the same object,
while this is not necessarily the case with strings:
stringA := String newFrom: 'string'.
stringB := String newFrom: 'string'.
stringA == stringB
symbolA := Symbol newFrom: 'symbol'.
symbolB := Symbol newFrom: 'symbol'.
symbolA == symbolB
> On Oct 16, 2016, at 7:19 AM, CodeDmitry <dimamakh...@gmail.com> wrote:
> So "at: x put: y" translates to a method named #at:put:(or "at:put:")?
> dict := Dictionary new.
> dict at: 'foo' put: 'bar'.
> var dict;
> dict = new Dictionary;
> dict['at:put:']('foo', 'bar');
> View this message in context:
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
"The coherence of a trip is given by the clearness of the goal."