Quote:
Originally Posted by turtleli
|
Now, things like that are the reason there is space for languages like python, although it is an interpreted language, thus much slower by nature; not to mention "compiler-providing" languages, like Haskell, FreePascal, golang, and many others.
Being a Fortran 90/95 programmer for many years, I never had such an issue, although I extensively used modules (think of it as Fortran's way to define classes - although it's not exactly the same and it's way more flexible than C++'s classes.)
Honestly, if the multimedia libraries I need to use had ports for a decent compiled language, I would just get rid of C++ once and for all...
Anyway, I finally decided to use the
enum trick, as ntubski suggested. This is actually what it is suggested at the above link as well.