[squeak-dev] The Trunk: Kernel-ul.1409.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Sep 5 15:04:56 UTC 2021


Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ul.1409.mcz

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

Name: Kernel-ul.1409
Author: ul
Time: 3 September 2021, 4:15:37.925846 pm
UUID: 44b68d6f-f84b-4319-bfe0-8db351b7f018
Ancestors: Kernel-eem.1408

- deprecate ifNotNilDo:, #ifNil:ifNotNilDo: and #ifNotNilDo:ifNil:

=============== Diff against Kernel-eem.1408 ===============

Item was removed:
- ----- Method: Object>>ifNil:ifNotNilDo: (in category 'accessing') -----
- ifNil: nilBlock ifNotNilDo: aBlock 
- 	"Evaluate aBlock with the receiver as its argument."
- 
- 	^ aBlock value: self
- !

Item was removed:
- ----- Method: Object>>ifNotNilDo: (in category 'accessing') -----
- ifNotNilDo: aBlock
- 	"Evaluate the given block with the receiver as its argument."
- 
- 	^ aBlock value: self
- !

Item was removed:
- ----- Method: Object>>ifNotNilDo:ifNil: (in category 'accessing') -----
- ifNotNilDo: aBlock ifNil: nilBlock
- 	"Evaluate aBlock with the receiver as its argument."
- 
- 	^ aBlock value: self
- !

Item was removed:
- ----- Method: UndefinedObject>>ifNil:ifNotNilDo: (in category 'testing') -----
- ifNil: nilBlock ifNotNilDo: ifNotNilBlock
- 	"Evaluate the block for nil because I'm == nil"
- 
- 	^ nilBlock value!

Item was removed:
- ----- Method: UndefinedObject>>ifNotNilDo: (in category 'testing') -----
- ifNotNilDo: aBlock
- 	"Override to do nothing."
- 
- 	^ self
- !

Item was removed:
- ----- Method: UndefinedObject>>ifNotNilDo:ifNil: (in category 'testing') -----
- ifNotNilDo: ifNotNilBlock ifNil: nilBlock 
- 	"If I got here, I am nil, so evaluate the block nilBlock"
- 
- 	^ nilBlock value!



More information about the Squeak-dev mailing list