[squeak-dev] The Inbox: Kernel-fn.1151.mcz
Levente Uzonyi
leves at caesar.elte.hu
Fri Feb 9 17:18:16 UTC 2018
On Fri, 9 Feb 2018, marcel.taeumel wrote:
> commits-2 wrote
>> A new version of Kernel was added to project The Inbox:
>> http://source.squeak.org/inbox/Kernel-fn.1151.mcz
>>
>> ==================== Summary ====================
>>
>> Name: Kernel-fn.1151
>> Author: fn
>> Time: 9 February 2018, 12:32:25.516883 pm
>> UUID: 9fb7df4b-6bf4-4af8-9c75-7496c2f0b517
>> Ancestors: Kernel-tonyg.1150
>>
>> For consistency: allow blocks to be passed into #xor: (see #or: and
>> #and:).
>>
>> =============== Diff against Kernel-tonyg.1150 ===============
>>
>> Item was changed:
>> ----- Method: False>>xor: (in category 'logical operations') -----
>> + xor: alternativeBlock
>> - xor: aBoolean
>> "Posted by Eliot Miranda to squeak-dev on 3/24/2009"
>>
>> + ^alternativeBlock value!
>> - ^aBoolean!
>>
>> Item was changed:
>> ----- Method: True>>xor: (in category 'logical operations') -----
>> + xor: alternativeBlock
>> - xor: aBoolean
>> "Posted by Eliot Miranda to squeak-dev on 3/24/2009"
>>
>> + ^alternativeBlock value not!
>> - ^aBoolean not!
>
> Hey Nicolas,
>
> it seems that you had the intention to not allow "a xor: [b]" because,
> obviously, one does always have to check both operands for XOR. Yet, would
> it do any harm if we would allow "a xor: [b]"?
Performance. Two fold: you create a block for no reason, because it will
always be evaluated right after its creation.
If there is no block, #value still has to be sent.
Levente
>
> Best,
> Marcel
>
>
>
> --
> Sent from: http://forum.world.st/Squeak-Dev-f45488.html
More information about the Squeak-dev
mailing list
|