Dim bug

Blitz3D Forums/Blitz3D Bug Reports/Dim bug

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.

I do not know if this is a real bug but i have the following problem discovered:

I did make a separate program containing a function. A the start of that file i dim a variable

Dim Colors$(25)

At the start of the main program is include the file.
untile so far so good.

Then later in the main program i did dim the variable again but now i did use it to be a integer array

Dim Colors(3)

during compiling i do not get any warnings or stoping of the compiling of the program.

But because of this i got a error during running the program. Index ouf of range. As soon as the function is called.

I know that during compiling the use of dubble variables in differend settings (e.g int and Str) the compiling stops and point out that the variables are a mismatch.

So why do i get the error using normal variables and not when i use array's.