Modify

#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 Valik, on Apr 21, 2008 at 4:06:59 PM

Resolution: No Bug
Status: newclosed

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.

comment:2 by Valik, on Apr 21, 2008 at 4:08:05 PM

Resolution: No Bug
Status: closedreopened

comment:3 by Valik, on Apr 21, 2008 at 4:08:19 PM

Resolution: Rejected
Status: reopenedclosed

Fixing incorrect resolution.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.