[squeak-dev] The Inbox: Kernel-ct.1301.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Feb 16 22:37:00 UTC 2020


A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-ct.1301.mcz

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

Name: Kernel-ct.1301
Author: ct
Time: 16 February 2020, 11:36:54.104878 pm
UUID: e766ce27-fd99-2c4b-ac94-408d4bde8d4f
Ancestors: Kernel-tonyg.1293

Documents the small but essential difference between #sendTo: and #sentTo:

Refactored against Kent's Type Suggesting Parameter Name idiom. Thanks to Chris for the reminder!

Committed again due to broken ancestry.

=============== Diff against Kernel-tonyg.1293 ===============

Item was changed:
  ----- Method: Message>>sendTo: (in category 'sending') -----
+ sendTo: receiverObject
+ 	"Answer the result of sending this message to receiverObject"
- sendTo: receiver
- 	"answer the result of sending this message to receiver"
  
+ 	^ receiverObject perform: selector withArguments: args!
- 	^ receiver perform: selector withArguments: args!

Item was changed:
  ----- Method: Message>>sentTo: (in category 'sending') -----
+ sentTo: receiverObject
+ 	"Answer the result of sending this message to receiver. Kind of private!! To send the message to a different receiver (for example, via #doesNotUnderstand:), use #sendTo: instead."
- sentTo: receiver
- 	"answer the result of sending this message to receiver"
  
+ 	^ lookupClass == nil
+ 		ifTrue: [receiverObject perform: selector withArguments: args]
+ 		ifFalse: [receiverObject perform: selector withArguments: args inSuperclass: lookupClass]!
- 	lookupClass == nil
- 		ifTrue: [^ receiver perform: selector withArguments: args]
- 		ifFalse: [^ receiver perform: selector withArguments: args inSuperclass: lookupClass]!



More information about the Squeak-dev mailing list