Re: [Somewhat-OT]?Unexpected behaviour of variable argument lists
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