Multi Array throws 'Expression Must be Variable'
BlitzMax Forums/Brucey's Modules/Multi Array throws 'Expression Must be Variable'
| ||
When checking out other examples in Vanilla, this works fine but building in NG I always get this error. Any ideas why is this happening or is there a different format? |
| ||
It is just showing a warning at compile time, or does it actually stop the program from running? |
| ||
hey xlsior, it stops the build exe process. |
| ||
Some actual examples might help resolve your issue :-) |
| ||
Thanks Brucey, something like this at ReadDataLocal cols:Int, rows:Int, col:Int, row:Int RestoreData data ReadData cols, rows Local block:Int[cols, rows] For row = 0 Until rows For col = 0 Until cols ReadData block[col, row] Next Next #data DefData 66,24 DefData 1,1,1... ... This builds fine in vanilla |
| ||
That builds fine for me too :SuperStrict Framework brl.standardio Local COLS:Int, rows:Int, col:Int, row:Int RestoreData data ReadData COLS, rows Local block:Int[COLS, rows] For row = 0 Until rows For col = 0 Until COLS ReadData block[col, row] Next Next For row = 0 Until rows For col = 0 Until COLS Print block[col, row] Next Next #data DefData 2,5 DefData 1,1,1,1,1 DefData 2,2,2,2,2 which results in: 1 1 1 1 1 2 2 2 2 2 |
| ||
Thanks. I'm using latest NG (0.70) copied your code above and still getting this error.. Again this perfectly builds on Vanilla, what seems to be the problem? It's really weird.. |
| ||
The latest (latest) version of bcc in github is 0.78. I need to try to find some time to do some new releases... of which I've been struggling of late. |
| ||
Might explain your (RustyKristi) issues with the samples of my framework. (to compile your own BCC you might need to do it with vanilla BlitzMax, as a conditional-flag might stop compilation of the current BCC with your old NG-BCC - as it expects certain functionality your old NG-BCC might not have yet). @Brucey - might be a good idea to use custom conditionals for language features you introduce - or some kind of minversion ("?bmxng070" - which is false on vanilla, and potentially false in NG too). bye Ron |
| ||
Ok I'll be downloading the latest bcc (0.78) and will try this again. Yes, I'm aware that you need to use vanilla bcc to compile NG executables. I just did not know that the latest build could solve these issues being thrown. thanks and brb.. |