Modify

Opened 12 years ago

Closed 12 years ago

#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, 12 years ago

Version: 3.3.8.1

Automatic ticket cleanup.

comment:2 by jchd18, 12 years ago

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, 12 years ago

jchd18, which future function are you talking about?

comment:4 by jchd18, 12 years ago

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

comment:5 by guinness, 12 years ago

I personally would reject this feature.

comment:6 by anonymous, 12 years ago

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

I like the idea.

comment:7 by anonymous, 12 years ago

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

in reply to:  7 ; comment:8 by anonymous, 12 years ago

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, 12 years ago

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, 12 years ago

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.