#123 closed Feature Request (Rejected)
I have added two user functions to array.au3
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | ||
| Keywords: | Cc: |
Description
Total - returns the total of all values in an array
Average - returns the average of all values in an array
Files are included with the additions.
Attachments (1)
Change History (7)
by , 18 years ago
comment:1 by , 18 years ago
Is this really something we need to add? I mean, the code is incredibly simple to do. There are also a few problems with the two functions. First, the code doesn't validate that the array is single-dimensioned. It just blindly assumes all arrays are one-dimensional. Second, it doesn't allow specifying the start index. Valid data may not start at element 0, it may start at element 1 depending on how the array was created. Third, there's an unused variable in one of the functions. Lastly, the documentation is wrong, it doesn't return an array.
All that being said, I really don't think we need to include these. Do a lot of people need these? Adding these seems like needless bloat to me. It kind of falls into the "far too simple" category. I leave it up to Gary to add or reject this, but my vote goes for reject.
comment:2 by , 18 years ago
| Resolution: | → rejected |
|---|---|
| Status: | new → closed |
comment:3 by , 18 years ago
| Resolution: | Rejected |
|---|---|
| Status: | closed → reopened |
Is this even the proper way to submit UDFs? Forgetting for a moment that these would be rejected anyway, shouldn't he have gone through different channels?
comment:4 by , 18 years ago
Er, reopened??? Crap, that was not intentional, I don't know how I managed that, I don't remember clicking on that. Sorry guys.
comment:5 by , 18 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | reopened → closed |
You're right, it's really not the best way to go about it.

Zip file with new array functions