Language Bug regarding Const specifiers

BlitzMax Forums/BlitzMax Programming/Language Bug regarding Const specifiers

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Is there any legitimate reason why the language doesn't allow the following declaration for TestLength?

Strict

Const TestString:String = "a constant string"
Const TestLength:Int = TestString.length


The error is that constant initializers must be constant. However, since TestString is const, TestString.length is also going to be constant of course.

I didn't file this as a bug report because there's probably some legitimate reason that I just don't know about.