Modify ↓
Opened 17 years ago
Closed 17 years ago
#647 closed Bug (No Bug)
Compiler Parsing
| Reported by: | pdaughe | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.13.9 | Severity: | None |
| Keywords: | Parsing | Cc: |
Description
The following presents a problem particularly when using the Execute statement:
$A = 1 $A = $A +++++- 1 MsgBox (0, "Test", "A = " & $A)
No syntax or run-time error is given.
Attachments (0)
Change History (2)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
$A = 1
$A = $A ++++- 1
$B = 1
$B = Execute("$B ++++- 1")
MsgBox (0, "Test", "A = " & $A & @crlf & "B = " & $B)
Execute produce the same value. So the problem is not related to Execute.
Back to the question Autoit works as parenthesis
$A + (+(+(+(- 1))))
so the result is correct whatever you are surprised of the behavior as I am.
You can find other case as Autoit works as in Polish notation (Jon say it is OK)
Note:
See TracTickets
for help on using tickets.

Interesting, you can have as many mixed up + and - as you want, but throw one * or / in there and it errors.