Modify

Opened 2 years ago

Closed 2 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 Changed 2 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

Action
as closed The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.