[RTM] Out of Bounds Array
Posted: Thu Apr 10, 2014 11:51 pm
PB5.22LTS x86 (Tested PB4.61 too)
Just came across an odd little issue - the compiler will create an exe from this code without flinching:
Surely compilation should halt at sgName(06)? Compile/Run does.
Just came across an odd little issue - the compiler will create an exe from this code without flinching:
Code: Select all
Global Dim sgName.s(5)
sgName(01) = "Name01"
sgName(02) = "Name02"
sgName(03) = "Name03"
sgName(04) = "Name04"
sgName(05) = "Name05"
sgName(06) = "Name06"
End