Const 'ing a Type not possible?

BlitzMax Forums/BlitzMax Beginners Area/Const 'ing a Type not possible?

Apollonius(Posted 2007) [#1]
I tried this:

Const TEST:MyTYPE=New MyTYPE

I get errors that looks like: constant initialiser must be constant

Im guessing ill have to make it global then :o


TaskMaster(Posted 2007) [#2]
If you made a CONST type, you would not be able to change any of its variables. What would be the point? You might as well just have Consts and Functions.


Koriolis(Posted 2007) [#3]
If it was allowed, I guess the logical meaning would be to have the *reference* to be constant, not the actual object. So there would be a point.