[squeak-dev] The Inbox: System-ct.1073.mcz
Tobias Pape
Das.Linux at gmx.de
Tue Jul 30 16:44:16 UTC 2019
Hey Christoph
> On 30.07.2019, at 17:18, commits at source.squeak.org wrote:
>
> A new version of System was added to project The Inbox:
> http://source.squeak.org/inbox/System-ct.1073.mcz
>
> ==================== Summary ====================
>
> Name: System-ct.1073
> Author: ct
> Time: 30 July 2019, 5:18:34.214556 pm
> UUID: 8e29c8e1-c869-c541-b274-e0beb170c532
> Ancestors: System-kfr.1072
>
> Add SmalltalkImage>>#at:ifPresent:ifAbsent:
>
> A shorthand for SmalltalkImage globals access
>
> =============== Diff against System-kfr.1072 ===============
>
> Item was added:
> + ----- Method: SmalltalkImage>>at:ifPresent:ifAbsent: (in category 'accessing') -----
> + at: key ifPresent: aBlock ifAbsent: anotherBlock
> +
> + ^globals at: key ifPresent: aBlock ifAbsent: anotherBlock!
>
>
Why not use `Smalltalk globals at: #some ifPresent: [] ifAbsent: []`
Best regards
-Tobias
More information about the Squeak-dev
mailing list
|