Operator inconsistency

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
User avatar
nnnik
Posts: 2506
Joined: 30 Sep 2013, 01:01
Location: Germany

Operator inconsistency

24 Dec 2017, 06:42

The code:

Code: [Select all] [Download] GeSHi © Codebox Plus

var := "String"
Msgbox % "String" * 0
Msgbox % var * 0
delivers the same result twice for AHK_L but creates 2 different results for AHK_H.
The first Msgbox returns "String0", which seems wrong to me.
The second returns "" which is consistent with AHK_L.
Is this a bug?
Recommends AHK Studio
HotKeyIt
Posts: 1607
Joined: 29 Sep 2013, 18:35
Contact:

Re: Operator inconsistency

24 Dec 2017, 14:57

Which AHK_L version did you test, result is the same for me with the latest version.
Seems to be due to Msgbox % * 0 interpreted as Dereference instead of multiplier.
User avatar
nnnik
Posts: 2506
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Operator inconsistency

25 Dec 2017, 04:14

HotKeyIt wrote:Which AHK_L version did you test, result is the same for me with the latest version.
Seems to be due to Msgbox % * 0 interpreted as Dereference instead of multiplier.

Indeed there is no inconsistency in AHK_H my mistake.
Recommends AHK Studio

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 2 guests