const assignment issue
const assignment issue
- Subject: const assignment issue
- From: Luigi Castelli <email@hidden>
- Date: Thu, 7 Dec 2006 19:10:14 -0800 (PST)
Hi there,
I have a bunch of constants that need to be
initialized.
However X-code does not allow me to do this:
extern const float value = 1 + 1;
but only:
extern const float value = 2;
Is there a way to use the former case without
generating any error?
I am on Mac Powerbook 2.16 GHz Intel Core Duo and I am
using X-code 2.4
Thanks.
- Luigi
------------------------------------------------------------
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT email@hidden AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
------------------------------------------------------------
____________________________________________________________________________________
Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden