The Trunk: Kernel-cmm.816.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-cmm.816.mcz

commits-2
Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.816.mcz

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

Name: Kernel-cmm.816
Author: cmm
Time: 26 October 2013, 2:55:06.697 pm
UUID: 62af959d-4b3e-4b4c-8c4e-aa7f1465e8de
Ancestors: Kernel-ul.815

Remove valueWithAllPossibleArguments: because it has not proven a general necessity..

=============== Diff against Kernel-ul.815 ===============

Item was removed:
- ----- Method: BlockClosure>>valueWithAllPossibleArguments: (in category 'evaluating') -----
- valueWithAllPossibleArguments: anArray
- "Same as valueWithPossibleArgs: except when the receiver takes just one-argument, and more than one argument is specified by anArray, then pass all of anArray as THE argument to the receiver block
- This is used to allow a large, variable number of arguments to be passed."
- ^numArgs = 0
- ifTrue: [self value]
- ifFalse:
- [self valueWithArguments:
- (numArgs = anArray size
- ifTrue: [anArray]
- ifFalse:
- [numArgs > anArray size
- ifTrue: [anArray, (Array new: numArgs - anArray size)]
- ifFalse:
- [numArgs = 1
- ifTrue: [Array with: anArray]
- ifFalse: [anArray copyFrom: 1 to: numArgs]]])]!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Kernel-cmm.816.mcz

David T. Lewis
On Sat, Oct 26, 2013 at 07:55:20PM +0000, [hidden email] wrote:

> Chris Muller uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-cmm.816.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-cmm.816
> Author: cmm
> Time: 26 October 2013, 2:55:06.697 pm
> UUID: 62af959d-4b3e-4b4c-8c4e-aa7f1465e8de
> Ancestors: Kernel-ul.815
>
> Remove valueWithAllPossibleArguments: because it has not proven a general necessity..
>

Good call, thanks Chris.

Dave