KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
OK, this is related to question "Constants in Objective C" . I created Constants.h and its corresponding Constants.m file: // Constants.h extern int const BOOKS; typedef enum SSDifficultyLevel { EASY = 0, MEDIUM = 1, HARD = 2 } SSDifficultyLevel; // Constants.m int const BOOKS = 66; My question: Is OK for the enum to be typedef 'd in Constants.h ? The code is compiling fine (no warnings or errors so far) but I was wondering if this is the right way to do it, as the solution provided in the related question involves splitting the constant's definition and declaration. Thanks.
Tags (comma-separated)
Save Edits
Cancel