Welcome!

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

SignUp Now!

SETARRAY Maximums

Aug
1,917
68
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  25.00.11 x64   Windows 10 [Version 10.0.18362.239]

If I do;
Code:
setarray test[99999999999999]

...then;
Code:
echo %@arrayinfo[test,5]
276447231

Is the maximum size of an array dependent on available memory, or is it a set size?

If it is mentioned in the help file, I could not locate it.

Joe
 
I think it's limited to the size of an unsigned long (32 bits) and your size is being interpreted as such.
Code:
v:\> eval 99999999999999 mod (2**32)
276447231
 
Back
Top