Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

SET /A and multidimensional array.

May
13,044
176
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
 
Back
Top
[FOX] Ultimate Translator
Translate