Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
- Subject: Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
- From: Cameron Hayne <email@hidden>
- Date: Fri, 4 Nov 2005 00:11:04 -0500
On 4-Nov-05, at 12:05 AM, John Stiles wrote:
it gives you the freedom to to use basic C++ language constructs
like declaring variables in places other than the top of the
function, like "for( int x=0; x<10; x++ )". Or simplified syntax
for things like "struct Foo {}" versus "typedef struct Foo_ {}
Foo;" or whatever the C equivalent was.
I think you can do these things merely by setting the C-flavour to
C99 in the XCode properties for your project. That's what I usually
do. Sorry - I should have mentioned this in my earlier response.
--
Cameron Hayne
email@hidden
_______________________________________________
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