Skip to content

usage of two dimensional arrays randomly reported as syntax errors #21

@zmajcenic

Description

@zmajcenic

Trying to compile a code like:
1560 SG(0,0)=6:SG(1,0)=0:SG(2,0)=0:SG(0,1)=7:SG(1,1)=0:SG(2,1)=0
1570 TG(0,0)=8:TG(1,0)=0:TG(2,0)=0:TG(0,1)=9:TG(1,1)=0:TG(2,1)=0
1580 BG(0,0)=10:BG(1,0)=0:BG(2,0)=0:BG(0,1)=11:BG(1,1)=0:BG(2,1)=0

reports syntax error on line 1570 but not on others

All arrays are DIMed the same at the start of program
10 DEFINT A-Z
20 DIM ZZ(13):DIM JR(2):DIM SA(3,31):DIM AD(14):DIM PG(2,1):DIM AR(1):DIM AL(1):DIM FG(2,1):DIM FR(1):DIM FL(1):DIM GG(2,1):DIM GR(1):DIM GL(1):DIM SG(2,1):DIM SR(1):DIM SL(1):DIM TG(2,1):DIM TR(1):DIM TL(1)
30 DIM BG(2,1):DIM BU(1):DIM CG(2,1):DIM CU(1):DIM PL(24,31):DIM CD(7,10)

This is example. Syntax errors thrown randomly in lines accessing two dimensional arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions