Re: NSNull and @""
Re: NSNull and @""
- Subject: Re: NSNull and @""
- From: Seth Willits <email@hidden>
- Date: Sat, 11 Oct 2008 15:26:36 -0700
On Oct 11, 2008, at 11:47 AM, Michael Ash wrote:
On Sat, Oct 11, 2008 at 1:57 PM, Seth Willits <email@hidden>
wrote:
If it's what I think you're talking about then: No, nil is used as
a marker
for the variable argument list to say "this is the end of the
list." It's
not actually inserted into the dictionary at all. Why it's required
is
really beyond me, but it's simply an Obj-C syntax thing.
It actually has to do with how C variable argument functions work.
They're called "varargs" for short, and "man stdarg" has more
information on how they work and how you can write one of your very
own.
Note that nowhere in there is there anything related to how many
arguments there are, or what type they are.
Ahh. I guess I mis-remembered varargs. I thought they did have a
count. I'm
You can tell how often I've had to use it ;-)
Thanks,
--
Seth Willits
_______________________________________________
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