Author Topic: Defining an array with more than one dim --> no error  (Read 1326 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Guest
Defining an array with more than one dim --> no error
« on: May 27, 2018, 07:35:11 AM »
The code below works fine but an error should be signaled  ;)
Code: [Select]
% FileName "test.exe"

dim as integer test(89,no_error-signaled)
test(88)=17
print test(88)

print "pgm exit"

And for o2debugger I got  inconsistent variables resulting of the parsing after "89,"    :(
gd 0 34 00 "V:test t=integer a=[ebx+0x1000] i=0 k=0 d=89 89  b=1"     OK
gd 0 32 00 "V:no_error t=integer a=[ebx+0x1164] i=0 k=0 d= b=1"       NOK
gd 0 2B 00 "V:- t=integer a=[ebx+0x1168] i=0 k=0 d= b=1"                  NOK
gd 0 32 00 "V:signaled t=integer a=[ebx+0x116C] i=0 k=0 d= b=1"       NOK
gd 0 2B 00 "V:) t=integer a=[ebx+0x1170] i=0 k=0 d= b=1"                  NOK
« Last Edit: May 27, 2018, 01:43:29 PM by Laurent »

Charles Pegge

  • Guest
Re: Defining an array with more than one dim --> no error
« Reply #1 on: May 27, 2018, 08:49:46 AM »
Thanks, Laurent.

That will be fixed on the next release