You can use an enum to define integer constants

enum {
        x = 123,
};

Le 21 sept. 2009 à 23:15, Frederick C. Lee a écrit :

I suspected such.Thanks to all.

I'm assuming 'const <datatype>' is better then the compiler directive
'#define', due to the use of the compiler
for more-efficient code.   Hence the attempt.

Regards,

Ric.

On Mon, Sep 21, 2009 at 2:00 PM, Jens Alfke <j...@mooseyard.com> wrote:


On Sep 21, 2009, at 1:24 PM, Kyle Sluder wrote:

You might want to review your favorite C documentation.  I always
preferred K&R.


Specifically, look up the keyword "extern" in the index.

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org

This email sent to devli...@shadowlab.org


-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to