Something like enum would be useful

Previous topic - Next topic

MrTAToad

...for where you have a long list of numbers that are stored in global variables...

Kitty Hello

Code (glbasic) Select

TYPE Tenum
  one = 1
  two = 2
ENDTYPE
GLOBAL enum AS Tenum

PRINT enum.one, 0,0

MrTAToad

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

Quentin

I agree. Not really important, but nice to have.

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

Ah, but a GLBasic version wouldn't!  =D