07-21-2014, 07:19 PM
Hi guys, it's been a little while. 
I finally got around to upgrading to 1.4.0-s1881 and set about recompiling a bunch of old stuff to see how it turned out. One thing I'm having a problem with is that some of my code uses consts in the declaration of arrays, which was fine in 1.3 but doesn't seem to like compiling in 1.4.
e.g.
This fails to compile with an error telling me that I must use a constant (which I thought I did).
Apologies if this has already been covered in here, I didn't have much luck with the search!

I finally got around to upgrading to 1.4.0-s1881 and set about recompiling a bunch of old stuff to see how it turned out. One thing I'm having a problem with is that some of my code uses consts in the declaration of arrays, which was fine in 1.3 but doesn't seem to like compiling in 1.4.
e.g.
Code:
'constants
const DGMAXX as ubyte = 10
const DGMAXY as ubyte = 10
'dungeon data
dim dgConnected(DGMAXY, DGMAXX) as ubyte
This fails to compile with an error telling me that I must use a constant (which I thought I did).

Code:
DunGen.bas:6: Array bound must be a constant expression.
DunGen.bas:6: Array bound must be a constant expression.
Traceback (most recent call last):
File "zxb.py", line 348, in <module>
File "zxb.py", line 262, in main
File "ply\yacc.pyc", line 263, in parse
File "ply\yacc.pyc", line 710, in parseopt
File "zxbparser.pyc", line 600, in p_bound_list_bound
File "zxbparser.pyc", line 324, in make_bound_list
File "symbols\boundlist.pyc", line 45, in make_node
File "ast_\tree.pyc", line 147, in appendChild
File "ast_\tree.pyc", line 52, in append
AssertionError
Apologies if this has already been covered in here, I didn't have much luck with the search!