Of course blitzmax should have this feature but I never found a reason to use consts. I always did:
it also catches errors in B3D like predayor with "type mismatch"
Type Alien Field class:AlienType EndType Type AlienType EndType Global Alien:AlienType Global Predator:AlienType Function CreateAlien(type:AlienType) ... a=new alien a.class=type ... End function CreateAlien(Alien) ' works CreateAlien(3) ' doesn't work
it also catches errors in B3D like predayor with "type mismatch"