[Rubycocoa-devel 301] Re: disable completion of nil arguments in ocm_invoke()

Back to archive index

Laurent Sansonetti lsans****@apple*****
Wed Jun 21 04:33:52 JST 2006


On Jun 20, 2006, at 7:38 PM, kimura wataru wrote:

> On Tue, 20 Jun 2006 03:10:33 +0200, Laurent Sansonetti wrote:
>> Actually, calling
>> 	
>> 	foo_()
>>
>> Will call foo: with nil, but this is another story.
>>
>
> I think this feature is unwanted, and removed. When the
> number of arguments are less than required numbers, raise
> an exception.
>
>   NSString.stringWithString_
>   # => OSX::OCMessageSendException: NSString#stringWithString:
>   #    - too few arguments: 1 for 0 (real: 0)

Thanks Kimura-san. I also agree that this is not expected.

Laurent



More information about the Rubycocoa-devel mailing list
Back to archive index