SET /A and multidimensional array.

May 20, 2008
9,425
63
Syracuse, NY, USA
This works as expected in versions <= 22. It fails in versions 23 and 24.
Code:
v:\> setarray a[2,2]

v:\> set a[0,0]=1

v:\> set /a a[0,0]+=10
0
TCC: Syntax error "0]+10"
Here's v22.
Code:
g:\tc22> setarray a[2,2]

g:\tc22> set a[0,0]=1

g:\tc22> set /a a[0,0]+=10
11

g:\tc22> echo %a[0,0]
11