[squeak-dev] The Inbox: Collections-ct.853.mcz

Levente Uzonyi leves at caesar.elte.hu
Sat Sep 21 23:50:53 UTC 2019


I still prefer #asSimpleSetter to do what #asMutator does now, as it was 
in Patrick's change set[1], except for the method comment, which should 
have the name updated.

Levente

[1] http://lists.squeakfoundation.org/pipermail/squeak-dev/2019-August/203554.html

On Sat, 21 Sep 2019, commits at source.squeak.org wrote:

> A new version of Collections was added to project The Inbox:
> http://source.squeak.org/inbox/Collections-ct.853.mcz
>
> ==================== Summary ====================
>
> Name: Collections-ct.853
> Author: ct
> Time: 21 September 2019, 7:36:40.443935 pm
> UUID: 627a4e03-54a2-9245-899e-62e983669d25
> Ancestors: Collections-mt.851
>
> Move #asSimpleSetter from MorphicExtras to Collections (step 2/2) and supplement it by #asSimpleGetter
>
> Complements MorphicExtras-ct.261
>
> =============== Diff against Collections-mt.851 ===============
>
> Item was added:
> + ----- Method: Symbol>>asSimpleGetter (in category 'converting') -----
> + asSimpleGetter
> + 
> + 	self numArgs isZero ifTrue: [^ self].
> + 	self numArgs > 1 ifTrue: [self error: 'Cannot convert complex selector to getter'].
> + 	^ self allButLast asSymbol!
>
> Item was added:
> + ----- Method: Symbol>>asSimpleSetter (in category 'converting') -----
> + asSimpleSetter
> + 	^ (self, ':') asSymbol!


More information about the Squeak-dev mailing list