Modify

#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 Rob Saunders <therks@…>, on Oct 30, 2008 at 2:58:22 AM

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

comment:2 by Jpm, on Oct 30, 2008 at 4:30:42 PM

Resolution: No Bug
Status: newclosed
$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)

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.