#3 #define ⇒ enum?

closed
nobody
None
5
2010-10-09
2009-12-28
No

Discussion

  • Roger B. Dannenberg

    That's an interesting idea, but C compilers vary in their strictness about casting between enum and int, which raises portability issues. Also some of these constants are bit masks, and it's confusing (to me) to use enums for calculation -- I think of them as mainly symbols, not numbers. Finally, I'm worried about breaking existing code. MIDI has a small set of commands, so I'd encourage you to define your own enums if you prefer that style.

     
  • Roger B. Dannenberg

    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks