enumerate?

Blitz3D Forums/Blitz3D Beginners Area/enumerate?

anyone know an elegant way to create enumerated constants in blitz3d?

enum State
  statePoweringUp
  stateIdle
  statePoweringDown
  stateOff
  stateDead
  statePendingDelete
end enum


thanks,

My preprocessor supports this IIRC...

Thanks!
I'll take a look at it.

BTW Michael,
shouldn't be PreProcessor (with 2 's') instead of what appears written in your signature ?

No offense in anyway m8..

;-)

Sergio.

Eek! That's been like that the whole time and I never noticed!? Plus the fact that Tangental should strictly be spelt Tangiental, that's kind of worrying! :P

Is that some Australian thing?

It's tangential on my side of the planet.