[squeak-dev] The Trunk: Tools-ct.946.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Thu Jan 27 10:05:15 UTC 2022


Hi --

It's funny that "ifNil: [ ^nil ]; do: [:ea | ... ]" almost looks like the older #ifNotNilDo: but that did not enumerate a collection. :-D Maybe that's the semantics for #ifNotNilDo: that might work.

Object >> #ifNotNil:
Collection >> #ifNotNilDo:

Just a thought. No serious proposal here. #ifNotNilDo: has still semantic baggage. 

Best,
Marcel
Am 27.01.2022 01:52:12 schrieb commits at source.squeak.org <commits at source.squeak.org>:
Christoph Thiede uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-ct.946.mcz

==================== Summary ====================

Name: Tools-ct.946
Author: ct
Time: 24 February 2020, 2:00:37.875323 pm
UUID: f4722cd3-964b-444e-9496-9c78fb2d7073
Ancestors: Tools-ct.931

Fixes a small regression in Tools-ct.931 if no versions are available.

=============== Diff against Tools-ct.931 ===============

Item was changed:
----- Method: VersionsBrowser>>scanVersionsOf:class:meta:category:selector: (in category 'init & update') -----
scanVersionsOf: method class: class meta: meta category: category selector: selector

selectorOfMethod := selector.
currentCompiledMethod := method.
classOfMethod := meta ifTrue: [class class] ifFalse: [class].
changeList := OrderedCollection new.
list := OrderedCollection new.
self addedChangeRecord ifNotNil: [ :change |
self
addItem: change
text: ('{1} (in {2})' translated
format: { change stamp. change fileName }) ].
listIndex := 0.
(ChangeSet scanVersionsOf: method class: class meta: meta category: category selector: selector)
+ ifNil: [^ nil];
do: [ :change |
self
addItem: change
text: ('{1} {2} {3} \{{4}\}' translated format: {
change stamp. classOfMethod name. selector. change category })].
listSelections := Array new: list size withAll: false.!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220127/434e4b04/attachment.html>


More information about the Squeak-dev mailing list