According to Bernhard Tschirren:
Is it possible to specify the value of an enumerated type?
AFAIK, this is not possible. Enumerated types are used whenever something abstract is needed where the numeric value does not matter.
I was trying to port a C header file which did something like this:
typedef enum hello_everybody { hello_error = -1, hello_first = 0, hello_second, hello_third ...
I would translate it into a forest of constants.
If everybody agrees that there should be an extension like this in GPC: It's probably not so hard to implement. Suggestions for the syntax? Objections against it?
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201] maintainer GNU Pascal [970510] - http://home.pages.de/~gnu-pascal/ [970125]