Re: [Somewhat-OT] Unexpected behaviour of varia ble argument lists
Re: [Somewhat-OT] Unexpected behaviour of varia ble argument lists
- Subject: Re: [Somewhat-OT] Unexpected behaviour of varia ble argument lists
- From: Andréas Saudemont <email@hidden>
- Date: Fri, 17 Sep 2004 09:21:37 +0200
Hi Joar,
> NSLog(@"A format string: %d" "Some other string", someIntegerValue);
Note that the two strings are separated by a space and not by a comma.
In C you can concatenate literal strings by separating them with
spaces, such as:
const char *str = "123" "456" "789";
which is equivalent to:
const char *str = "123456789";
As Objectice-C is a superset of C, your code is the same as:
NSLog(@"A format string: %d Some other string", someIntegerValue);
Andréas
_______________________________________________
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