• 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: [Somewhat-OT]?Unexpected behaviour of variable argument lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Somewhat-OT]?Unexpected behaviour of variable argument lists


  • Subject: Re: [Somewhat-OT]?Unexpected behaviour of variable argument lists
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 17 Sep 2004 15:39:04 -0600

> This has long bothered me as well. Getting the number of arguments wrong
> after a format is a nice way to crash at runtime, so one wishes the compiler
> would warn.

It wouldn't be too hard to build something type-safe using C++. I do this
now in Carbon using a combination of macros with varargs and templates. The
final destination is clog using <<, but NSLog could just as easily be used.

Sounds like a project as I start to use more Cocoa ;-)


--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: [Somewhat-OT]?Unexpected behaviour of variable argument lists (From: Matt Neuburg <email@hidden>)

  • Prev by Date: stringWithContentsOfURL
  • Next by Date: Re: Application in multiple screens
  • Previous by thread: Re: [Somewhat-OT]?Unexpected behaviour of variable argument lists
  • Next by thread: Super slow task performance...
  • Index(es):
    • Date
    • Thread