Re: variadic args
Re: variadic args
- Subject: Re: variadic args
- From: Jens Alfke <email@hidden>
- Date: Thu, 24 May 2012 08:30:27 -0700
On May 24, 2012, at 6:43 AM, Scott Ribe wrote: Sure. Google "objective-c variadic args"
I don't think you read the OP's question carefully enough. That query is really too vague to be helpful, although looking at the top answer from Stack Overflow did turn up this comment:
Which I believe is true. (Or to be 100% accurate, I can imagine ways to do this but they involve nasty platform-dependent stack hackery, possibly even inline assembly. Don't go there.)
Charlie: In most cases, Cocoa methods that take varargs have equivalent methods that take parameters either as a va_list, as a C array, or as a Cocoa collection object. If you define your own methods that take varargs, you can similarly make alternatives. So there should always be workarounds to shoving an array into a "…".
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden