Quote: "if thisInt > 0 then if getSpriteExists( thisInt ) then ..."
This is no longer supported, please use the block method for nested IF statements.
Quote: "There is also an issue with constants with negative values;"
Thanks, fixed.
Quote: "GLOBAL PLAYERX#=WIDTH#/2"
This is no longer supported as default values are now assigned at compile time, so you can declare global variables any where in your program (including includes) and have their value set when the program starts. To set the value at runtime use
at the appropriate time.
Quote: "I found another one with empty if-endif conditions"
Empty IF/ELSE blocks will be accepted in the next update.
Quote: "but here we have alert about undefined variables 'some' and 'any'."
Because you haven't assigned the variables a value anywhere in your code the IF statement reduces to "if 0 = 0" and therefore is likely a mistake, or could be simplified by replacing them with "0".
Quote: "dim m_some[ ac_some ] = [ 0, 1, 2 ]"
Again default values are assigned at compile time, so the compiler doesn't like it, but I guess it could infer the size of the array from the number of values you have provided. You could use a constant here instead, or hard-code the value "3" since you are assigning it 3 values, but I guess there is room for interpretation here.
Quote: "'dim SinArray[100] as float', it tells me: "Cannot use a float as an array index"
I tried declaring a float array but I didn't get the error, are you using the array like this anywhere?
in which case you will need to convert the float to an int like so
SinArray[Ceil(someVar#)]
or
SinArray[Floor(someVar#)]
or
SinArray[Round(someVar#)]
Quote: "'DirArray = [0,1,0,-1,0,1,-1,-1,1]'"
I tested this in the old compiler and it also threw an error, so not a bug. However I like the idea of assigning lots of values to an array in a single line like that so I might add it in a future version.
Quote: "function (var as integer)"
Thanks, fixed for the next update.
Quote: "array as integer[size]"
New format arrays are declared once with a default size that is assigned at the start of the program, if you want to change the size at runtime use
Quote: "var1.class=var2 // this should make var1.class.s="jimy""
Thanks, fixed for the next update.