Aug. 17, 2011
8:33 p.m.
this is a convenience methods On 17 August 2011 23:29, Philippe Marschall <kustos@gmx.net> wrote:
On 17.08.2011 22:17, Stéphane Ducasse wrote:
I wrote
cull: anArg    "Execute the receiver with one or zero argument.
   [ 1 + 2 ] cull: 5        returns 3    [ :x | 1+ 2 + x] cull: 5        returns 8    "    ^numArgs = 0        ifTrue: [self value]        ifFalse: [self value: anArg]
So it's like #valueWithPossibleArgument:? Why do we need two methods that do the same thing?
Cheers Philippe
-- Best regards, Igor Stasenko AKA sig.