Modify

#2656 closed Feature Request (Rejected)

array automatic redim for $array[] = ...

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

dear developers. Whether technically difficult to make constructions like $some_array [] = 3, automatically adds a new element to the array $some_array?

Attachments (0)

Change History (10)

comment:1 by TicketCleanup, on Feb 19, 2014 at 7:00:01 AM

Version: 3.3.8.1

Automatic ticket cleanup.

comment:2 by jchd18, on Feb 19, 2014 at 9:25:21 AM

Your suggestion of this syntactic sugar is greatly inferior to what ReDim currently allows. Hence ReDim would still be needed for N-dimensional arrays. Moretheless it would possibly collide with another future feature using part of this syntax.

comment:3 by anonymous, on Feb 19, 2014 at 11:58:13 AM

jchd18, which future function are you talking about?

comment:4 by jchd18, on Feb 19, 2014 at 1:03:58 PM

I ain't a Dev, so only future will tell.

comment:5 by guinness, on Feb 21, 2014 at 11:52:36 PM

I personally would reject this feature.

comment:6 by anonymous, on Feb 22, 2014 at 6:53:17 PM

This feature requires an internal replacement for _ArrayAdd.
But PHP shows... It's possible.

I like the idea.

comment:7 by anonymous, on Feb 22, 2014 at 7:53:12 PM

That is only syntactic sugar for _ArrayAdd($arr, 3), is that really necessary?

in reply to:  7 ; comment:8 by anonymous, on Mar 8, 2014 at 10:01:59 AM

Replying to anonymous:

That is only syntactic sugar for _ArrayAdd($arr, 3), is that really necessary?

I think that it's time to get AutoIT native functions for working with arrays, and not rely on additional libraries such as _array ..

in reply to:  8 comment:9 by anonymous, on Mar 8, 2014 at 9:31:46 PM

Replying to anonymous:

I think that it's time to get AutoIT native functions for working with arrays, and not rely on additional libraries such as _array ..

Hm... why not $arr.push($value), returning $value? That doesn't require a new operator.

comment:10 by Melba23, on Aug 1, 2014 at 8:13:46 PM

Resolution: Rejected
Status: newclosed

Rejected.

M23

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.