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)
Note:
See TracTickets
for help on using tickets.

Already reported https://www.autoitscript.com/trac/autoit/ticket/3003
M23