SETARRAY Maximums

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
 
May 20, 2008
10,635
82
Syracuse, NY, USA
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