enumerate?

Blitz3D Forums/Blitz3D Beginners Area/enumerate?

BulletMagnet(Posted 2003) [#1]
anyone know an elegant way to create enumerated constants in blitz3d?

enum State
  statePoweringUp
  stateIdle
  statePoweringDown
  stateOff
  stateDead
  statePendingDelete
end enum


thanks,


Michael Reitzenstein(Posted 2003) [#2]
My preprocessor supports this IIRC...


BulletMagnet(Posted 2003) [#3]
Thanks!
I'll take a look at it.


semar(Posted 2003) [#4]
BTW Michael,
shouldn't be PreProcessor (with 2 's') instead of what appears written in your signature ?

No offense in anyway m8..

;-)

Sergio.


Michael Reitzenstein(Posted 2003) [#5]
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


Floyd(Posted 2003) [#6]
Is that some Australian thing?

It's tangential on my side of the planet.