Is there any legitimate reason why the language doesn't allow the following declaration for TestLength?
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.
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.