...for where you have a long list of numbers that are stored in global variables...
TYPE Tenum
one = 1
two = 2
ENDTYPE
GLOBAL enum AS Tenum
PRINT enum.one, 0,0
What I would prefer is something akin to C's, whereby you can set the starting value and let the compiler work out what the next value is, eg :
enum {
a=1
b
c
}
where a is 1, b = 2 and c =3
I agree. Not really important, but nice to have.
:puke:
enum sucks :good:
Ah, but a GLBasic version wouldn't! =D