Modify ↓
Opened 18 years ago
Closed 18 years ago
#224 closed Feature Request (Rejected)
Ubound would return last index
| Reported by: | amokoura | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | ubound | Cc: |
Description
In other languages, Ubound returns the last index. So wouldn't it be natural to have it behave the same way in AutoIt?
Ubound referes to "Upper Bound", which might not straightforwardly refer to array "size" or "length".
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , 18 years ago
| Resolution: | No Bug |
|---|---|
| Status: | closed → reopened |
comment:3 by , 18 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | reopened → closed |
Fixing incorrect resolution.
Note:
See TracTickets
for help on using tickets.

It refers to the length when the array is initialized with an appropriate empty value. The behavior of UBound() is correct and will not be changed.