Re: Variable Number of Parameters in Method
Re: Variable Number of Parameters in Method
- Subject: Re: Variable Number of Parameters in Method
- From: Lee Ann Rucker <email@hidden>
- Date: Thu, 22 Aug 2013 13:42:18 -0700
On Aug 21, 2013, at 11:37 PM, Dave wrote:
> Hi,
>
> It's not much good to me since I don't have a problem passing objects but with passing a mixed set.
>
> Type passing, 1,2,3,5.6,@"hello",nil to the arrayWithObjects and you will see what I mean
>
> Cheers
> Dave
But 1,2,3 etc aren't objects. I keep looking at your concept and wondering how you expect to handle an integer that happens to be 0. We've got code that takes mixed parameters but everything - even the objects - has to be in pointers. It's a wrapper around NSInvocation, so eventually a standard method is going to get it; no type-guessing involved.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden