• 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: Creating methods with variable length arguments terminated by nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating methods with variable length arguments terminated by nil


  • Subject: Re: Creating methods with variable length arguments terminated by nil
  • From: Dave Keck <email@hidden>
  • Date: Wed, 15 Jul 2009 21:14:22 -1000

The other night I spent about three hours trying to figure out why
some code I had was behaving so strangely. It got to the point where I
was convinced I found a bug in gcc - but as always, it was the pilot
at fault. It turns out I forgot to terminate several of my
variable-argument lists with a nil.

At one time, I recall Xcode/gcc warning me about not terminating my
varg list with a nil, but recently I found this warning is not enabled
by default (perhaps my system's just acting up?). So yeah, I learned
pretty quick how useful -Wformat can be; I highly recommend enabling
it!

David
_______________________________________________

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

References: 
 >Creating methods with variable length arguments terminated by nil (From: Graham Cox <email@hidden>)
 >Re: Creating methods with variable length arguments terminated by nil (From: "Stephen J. Butler" <email@hidden>)
 >Re: Creating methods with variable length arguments terminated by nil (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Creating methods with variable length arguments terminated by nil
  • Next by Date: Re: Efficiency of loading Localizable.strings and NSUserDefaults
  • Previous by thread: Re: Creating methods with variable length arguments terminated by nil
  • Next by thread: Windowed Video
  • Index(es):
    • Date
    • Thread