OK to Use C++ Shorthand Constructs in a Cocoa Project?
OK to Use C++ Shorthand Constructs in a Cocoa Project?
- Subject: OK to Use C++ Shorthand Constructs in a Cocoa Project?
- From: Jerry Krinock <email@hidden>
- Date: Thu, 03 Nov 2005 18:50:46 -0800
- Thread-topic: OK to Use C++ Shorthand Constructs in a Cocoa Project?
In my CodeWarrior Cocoa project which I am in the process of building in
Xcode, I use, from my C++ days, a number of C++ Shorthand Constructs such
as:
- declaring an enum without using the keyword enum
- declaring a struct without using the keyword struct
- reference parameters in functions and methods
These compiled with no problem in CodeWarrior since I checkboxed "C++" in
the target settings. I suppose there is an equivalent checkbox somewhere in
Xcode, but before I go looking for it, I was wondering if someone could
explain to me why C++ is not enabled in a new Cocoa project created by the
Assistant in Xcode?
Is it Bad Programming Practice to use these C++ Shorthand Constructs in a
Cocoa project? I don't have that many of them and I could easily fix them
if that was advisable.
Jerry Krinock
_______________________________________________
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