Re: concatenating literal strings
Re: concatenating literal strings
- Subject: Re: concatenating literal strings
- From: Andy Lee <email@hidden>
- Date: Wed, 7 Aug 2002 14:06:13 -0400
At 10:27 AM -0700 8/7/02, Matt Neuburg wrote:
I've just discovered by accident that it's possible to concatenate two
literal NSStrings just by leaving a space between them:
NSString* s = @"Howdy " @"There";
Pretty cool, especially when a literal string is very long because now it
can easily be split across lines of code.
Cool! I knew you could do a similar thing with C strings:
char *s = "Howdy " "There";
I had hoped this would work with NSStrings:
NSString *s = @"Howdy " "There";
But of course it didn't.
Woo-hoo, no more lines running past column 80!
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.