question about Type global initializers...
BlitzMax Forums/BlitzMax Beginners Area/question about Type global initializers...
| ||
Hi, The following: Type mytype Global array:Float[4] EndTypeProduces this error: Compile Error: Type global initializers must be constant But this: Type mytype Global array:Float[] EndTypeCompiles without any problems. Surely the first one is more constant than the second...or am I mistaken? |
| ||
I agree, but : http://blitzbasic.com/Community/posts.php?topic=48801#542955 |
| ||
So am I supposed to assume that the line, global array[5] gets internally converted to, global array[]=new int[5] |
| ||
So am I supposed to assume that the line, global array[5] gets internally converted to, global array[]=new int[5] Yep. The 'const only' Global initializer stuff will be fixed very soon though! |
| ||
cool thanks! |