Originally Posted by
xLeaves
The point you are paying attention to is wrong.
What I want to say is that the array operation of ThinBasic can be written more beautifully.
Not where the index is.
I have written some programs with ThinBasic, of course I will use arrays, but I know if the array index starts from 1 or 0 is not my question.
Dim a = Array(1, 2, 3, 4, 5)
Dim arr(5) As Long
Array Assign arr() = 1, 2, 3, 4, 5
Which of these two methods is intuitive and easy to understand, it is clear at a glance.
So what I am saying is to let ThinBasic embrace better writing and focus on language standardization.
This is what any programming language that stands out from the crowd is doing.
Actually you can do the following:
dim MyLongArray(5) as long = 1,2,3,4,5
Maybe I can implement something like the following where initialization will be done by direct assignment.
dim MyLongArray() as long = 1,2,3,4,5
Bookmarks