I have a function
-(id) func: params1, … NS_REQUIRES_NIL_TERMINATION and2: params2, … NS_REQUIRES_NIL_TERMINATION;
Compiler says: error: expected `;’ before ‘and2’
Is there any way to make function with 2 argument lists?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simply put: No. It is not possible.
There is, however, a workaround available; you can pass instead two pointers to
idthat work out to nil-terminated arrays, like so:Edit: As an alternative, the list could be
nil-terminated twice. (Now that is weird!)