Re: Just starting off in obj C
Re: Just starting off in obj C
- Subject: Re: Just starting off in obj C
- From: Chris Idou <email@hidden>
- Date: Sun, 26 Oct 2008 05:16:59 -0700 (PDT)
Interesting, but that's no longer ansi-C. Plus it still won't support you creating your own kinds of format strings.
--- On Sun, 10/26/08, Chris Suter <email@hidden> wrote:
> From: Chris Suter <email@hidden>
> Subject: Re: Just starting off in obj C
> To: email@hidden
> Date: Sunday, October 26, 2008, 2:24 AM
> On Sun, Oct 26, 2008 at 3:27 PM, Chris Idou
> <email@hidden> wrote:
>
> > Which doesn't actually solve everything. For
> example, it would be quite a common thing in C to write a
> log() function that is implemented via vsprintf and family,
> so that you are passing format strings and arguments to
> functions other than the raw fprintf and family functions,
> in which case you are out of luck for compiler type
> checking.
>
> Not true for the GNU compiler: when you declare your log
> function you
> can tell it that it takes printf style arguments.
>
> -- Chris
_______________________________________________
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