Modify

Opened 8 years ago

Closed 8 years ago

#3570 closed Bug (Duplicate)

Array index statements are called twice when used in a assignment

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

Description

When values assigned to an array element, the index statement seems to be evaluated twice. If only the array value is used in another statement this behavior does not seem to be occurring.

Example:

Global $aArr[12]

$aArr[MsgBox(0, "", "appear twice")] = "Test"

$x = $aArr[MsgBox(0, "", "appear once")]

AutoIt v.3.3.8.1 and below haven't got this problem. With 3.3.10.2 (x86 and x64) and greater i can reproduce this behaviour. Versions between 3.3.8.1 and 3.3.10.2 were not tested.

Attachments (0)

Change History (1)

comment:1 by Melba23, 8 years ago

Resolution: Duplicate
Status: newclosed

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.