var index = 600_000 .. is same as .. var index : int = 600_000 int type is inferred and "high" returns highest value of int type, as expected.
if you need smaller range than int, well, use a range, like type MyInt = range[0..1_000_000]
var index = 600_000 .. is same as .. var index : int = 600_000 int type is inferred and "high" returns highest value of int type, as expected.
if you need smaller range than int, well, use a range, like type MyInt = range[0..1_000_000]