Re: Why add a nil item to an NSArray ?
Re: Why add a nil item to an NSArray ?
- Subject: Re: Why add a nil item to an NSArray ?
- From: "Mark Munz (DevList)" <email@hidden>
- Date: Mon, 27 Jun 2005 22:10:18 -0500
On Jun 27, 2005, at 6:19 PM, Clark Cox wrote:
On 6/27/05, Mark Munz (DevList) <email@hidden> wrote:
It is non-intuitive. Is this maybe something left over from the past?
The variable argument method already has process a variable list of
arguments already and can easily determine when the end is reached.
No, it cannot automatically do that; any such function taking a
variable number of arguments needs more information.
My bad. In reviewing some older code that used variable arguments (I
don't use it much anymore for my own routines, just those supplied by
Cocoa), I was using sentinel values there too -- just forgot about them.
Mark Munz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden