• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: no fixed variable parameter preceding a variable ... parameter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >no fixed variable parameter preceding a variable ... parameter? (From: Ben Dougall <email@hidden>)

  • Prev by Date: NSController/binding question?
  • Next by Date: Re: XCode for Jaguar?
  • Previous by thread: no fixed variable parameter preceding a variable ... parameter?
  • Next by thread: Re: no fixed variable parameter preceding a variable ... parameter?
  • Index(es):
    • Date
    • Thread