Well, a constant in BlitzMax is constant, and has to be fully defined at compile time.
If I understood your original question, you want to have the 'z' constant hold a different value for each type instance you make. Which to me sounds like a variable constant. That is simply not possible, and you will have to make 'z' a regular variable.
If you simply want the same constant value in all type instances, you could use the second example I posted, but would be better off with a regular constant.
If I understood your original question, you want to have the 'z' constant hold a different value for each type instance you make. Which to me sounds like a variable constant. That is simply not possible, and you will have to make 'z' a regular variable.
If you simply want the same constant value in all type instances, you could use the second example I posted, but would be better off with a regular constant.