[squeak-dev] The Trunk: Kernel-eem.1321.mcz
Chris Muller
asqueaker at gmail.com
Thu Apr 16 20:29:41 UTC 2020
I suppose it does make more sense asking a CompiledCode about it's
"messages", than its "selectors". A strange subtlety..
On Thu, Apr 16, 2020 at 2:09 PM Chris Muller <asqueaker at gmail.com> wrote:
> Hm, now you've got two words to describe one thing ("message" and
> :"selector"). I like "selector", but don't you want to rename them all?
>
>
> On Wed, Apr 15, 2020 at 6:07 PM <commits at source.squeak.org> wrote:
>
>> Eliot Miranda uploaded a new version of Kernel to project The Trunk:
>> http://source.squeak.org/trunk/Kernel-eem.1321.mcz
>>
>> ==================== Summary ====================
>>
>> Name: Kernel-eem.1321
>> Author: eem
>> Time: 15 April 2020, 4:07:36.59453 pm
>> UUID: 93f4b4c9-41ba-47f8-b220-72087fc41176
>> Ancestors: Kernel-eem.1319
>>
>> Change a couple of CompiledCode methods to use selectorsDo:; messagesDo:
>> should be deprecated at some point.
>>
>> =============== Diff against Kernel-eem.1319 ===============
>>
>> Item was changed:
>> ----- Method: CompiledCode>>messages (in category 'scanning') -----
>> messages
>> "Answer a Set of all the message selectors sent by this method."
>>
>> | result |
>> result := Set new.
>> + self selectorsDo: [:selector | result add: selector].
>> - self messagesDo: [:selector | result add: selector].
>> ^ result!
>>
>> Item was changed:
>> ----- Method: CompiledCode>>messagesSequence (in category 'scanning')
>> -----
>> messagesSequence
>> "Answer a sequence of all the message selectors sent by this
>> method in the order they are sent. Unlike #messages this may include
>> duplicates. Note that both the sources and the decompiled sources might
>> suggest different results. The returned information reflect the actual
>> bytecode."
>>
>> ^ Array streamContents: [:result |
>> + self selectorsDo: [:selector | result nextPut: selector]]!
>> - self messagesDo: [:selector | result nextPut: selector]]!
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200416/d581c724/attachment.html>
More information about the Squeak-dev
mailing list
|