BASIC (the traditional dialects thereof, anyway) does all of those things.
In fact, you can even read indices of an array without declaring it. If you do, it's auto-declared as having 11 elements (with indices 0 to 10), filled with zeroes.
This was still supported as late as VB for DOS. I wouldn't be surprised if VB6 also had this behavior.
In fact, you can even read indices of an array without declaring it. If you do, it's auto-declared as having 11 elements (with indices 0 to 10), filled with zeroes.
This was still supported as late as VB for DOS. I wouldn't be surprised if VB6 also had this behavior.