Opened 18 years ago
Closed 18 years ago
#457 closed Bug (No Bug)
I'm a moron and like to swear in ticket titles.
| Reported by: | Pascal258 | Owned by: | Jos |
|---|---|---|---|
| Milestone: | Component: | Standard UDFs | |
| Version: | 3.2.12.0 | Severity: | None |
| Keywords: | Cc: |
Description
Inside of _ArrayDelete you get "Local $iUBound = UBound($avArray, 1) - 1". In the loop in Case 1 you also substract -1 which is wrong.
"For $i = $iElement To $iUBound - 1" should be "For $i = $iElement To $iUBound"
greetings,
Pascal257
Attachments (0)
Change History (5)
follow-up: 2 comment:1 by , 18 years ago
| Summary: | _ArrayDelete fucked up. → I'm a moron and like to swear in ticket titles. |
|---|
follow-up: 5 comment:2 by , 18 years ago
Replying to Valik:
Ticket title changed. Seriously, was that necessary?
So and your comment and title is/was also necessary?
comment:3 by , 18 years ago
| Component: | AutoIt → Standard UDFs |
|---|---|
| Owner: | set to |
| Status: | new → assigned |
comment:4 by , 18 years ago
I believe the loop is correct, if it is a 1 dimension array then you move everything up the array by one, being it is moving everything by one it needs to stop 2 before the end of the array. Same goes for a 2 dimension array.
comment:5 by , 18 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | assigned → closed |
Replying to anonymous:
Replying to Valik:
Ticket title changed. Seriously, was that necessary?
So and your comment and title is/was also necessary?
I don't really think that's relevant. You created a ticket for something that isn't a bug. Can you demonstrate the code, as written, presents a problem?. To top it off you do so by creating a ticket with a profane title. Why shouldn't I go out of my way to discourage you from ever wasting my time using the issue tracker again? You're not off to an auspicious start here. And your behavior has earned you a vacation from the forum.
The lesson(s) you need to take from this is/are 1) Think before you act; 2) If you're going to be an ass-hat, wear it somewhere else, please.
I'm closing this. Quite obviously, and as Gary pointed out, this is not a bug. The next array element ($i + 1) is read in the loop which means the loop must stop at UBound() - 2 which is what the code reflects. Otherwise the code will attempt to index out of bounds.

Ticket title changed. Seriously, was that necessary?