Opened 5 years ago

Closed 5 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: Severity: None
Keywords: Cc:


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.


Global $aArr[12]

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

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

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

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Melba23

  • Resolution set to Duplicate
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.