Re: no fixed variable parameter preceding a variable ... parameter?
Re: no fixed variable parameter preceding a variable ... parameter?
- Subject: Re: no fixed variable parameter preceding a variable ... parameter?
- From: "Alastair J.Houghton" <email@hidden>
- Date: Sat, 25 Oct 2003 21:44:52 +0100
On Saturday, October 25, 2003, at 06:47 pm, Ben Dougall wrote:
is there anyway to declare a method to take a variable number of
arguments, *without* an initial fixed argument, like this:
No, because the ANSI <stdarg.h> doesn't support that, so you wouldn't
be able to get at the arguments (I am aware, before anyone mentions it,
that there used to be a header <varargs.h> that you could use to get
older behaviour that would have let you do this, but I don't think it
even works on Mac OS X).
i've tried a number of combinations of things to try and achieve no
fixed variables but no good. anyone know of a way?
What are you trying to do that requires this? Perhaps we could suggest
a better way?
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.