Modify

#123 closed Feature Request (Rejected)

I have added two user functions to array.au3

Reported by: doug@… 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)

au3.zip (14.9 KB ) - added by dbkaynor on Feb 15, 2008 at 5:18:24 PM.
Zip file with new array functions

Download all attachments as: .zip

Change History (7)

by dbkaynor, on Feb 15, 2008 at 5:18:24 PM

Attachment: au3.zip added

Zip file with new array functions

comment:1 by Valik, on Feb 15, 2008 at 6:03:18 PM

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 Gary, on Feb 15, 2008 at 9:09:10 PM

Resolution: rejected
Status: newclosed

comment:3 by Saunders <admin@…>, on Feb 18, 2008 at 1:47:57 AM

Resolution: Rejected
Status: closedreopened

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 Saunders <admin@…>, on Feb 18, 2008 at 1:49:51 AM

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 Valik, on Feb 18, 2008 at 3:13:43 AM

Resolution: Rejected
Status: reopenedclosed

You're right, it's really not the best way to go about it.

comment:6 by TicketCleanup, on Feb 22, 2008 at 10:45:05 PM

Version: 3.2.10.0

Automatic ticket cleanup.

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.