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 Rob Saunders <therks@…>, 17 years ago

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

comment:2 by J-Paul Mesnage, 17 years ago

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.