﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
831	Arrays with ranged size - optimizing without breaking compatibility with old scripts	madflame991		"Many many times I wished AutoIt had arrays with ranged size... there are numerous situations when I really don't use element0 from an array simply because I, as a human being, like to count starting from 1. Another thing is that there are some algorithms which can be optimized like in the example below:

{{{
Dim $counter[65..90]
For $i = 1 to StringLen($s)
  $counter[Asc(StringMid($s,$i,1))] += 1
Next
}}}
should be faster than
{{{
Dim $counter[26]
For $i = 1 to StringLen($s)
  $counter[Asc(StringMid($s,$i,1))-65] += 1
Next
}}}
because of the missing -65

The best part is that backward compatibility won't be ruined because arrays declared as ""Dim $array[10]"" will by default mean ""Dim $array[0..9]"" for the ""compiler"".
This method of declaring arrays is found in user-friendly programming languages such as Pascal and Basic, whereas the old style is used in the middle level C programming language.
Also, from what I can tell it shouldn't be to hard to implement, but... you know what's best!

Thank you for your time,
madflame991"	Feature Request	closed		AutoIt		None	Rejected	opitimization, arrays, ranged	
