Search found 13 matches

by aseiot
21 Nov 2018, 08:22
Forum: AutoHotkey v2 Development
Topic: [bug] when assign object var to its' sub var
Replies: 1
Views: 190

Re: [bug] when assign object var to its' sub var

I can narrow down the code to LINE 413-414 in var.cpp

Code: Select all

413	if (mAttrib & VAR_ATTRIB_IS_OBJECT)
414		ReleaseObject(); // This removes the attribute prior to calling Release() and potentially __Delete().
When release the object, the sub var hold in "aBuf" is vanished also.
by aseiot
21 Nov 2018, 08:12
Forum: AutoHotkey v2 Development
Topic: [bug] when assign object var to its' sub var
Replies: 1
Views: 190

[bug] when assign object var to its' sub var

It get error when assign object var to its sub var. Such as

Code: Select all

X := ["TEST"]

X := X.1

MsgBox X	; should be "test", actually nothing or messy
It could reproduced when run in "debug" version (compiled from source)

AHK version: V2 a100
by aseiot
12 May 2018, 10:04
Forum: AutoHotkey v2 Development
Topic: Inconsistent behavior of deref in closure Topic is solved
Replies: 3
Views: 559

Inconsistent behavior of deref in closure Topic is solved

I find %VAR% is not work consistently in closures. F(){ X := 100 Y := "X" TEST_DEREF(){ MsgBox %Y% ; suppose to 100, actually empty } TEST_DEREF() } F() If we do some operation before deref, it work as expected. F(){ X := 100 Y := "X" TEST_DEREF(){ ANYTHING := X ; do any operation before deref MsgBo...
by aseiot
02 May 2018, 00:43
Forum: AutoHotkey v2 Development
Topic: Possible Bug: object with numeric key in v2.0-a095-9f724c5 Topic is solved
Replies: 4
Views: 584

Re: Possible Bug: object with numeric key in v2.0-a095-9f724c5 Topic is solved

Did more test about the numeric key of object. Integer constants and numeric strings outside of the supported range (of 64-bit signed integers) now overflow/wrap around, instead of being capped at the min/max value. This is consistent with math operators, so 9223372036854775807+1 == 9223372036854775...
by aseiot
29 Apr 2018, 07:07
Forum: AutoHotkey v2 Development
Topic: Possible Bug: object with numeric key in v2.0-a095-9f724c5 Topic is solved
Replies: 4
Views: 584

Possible Bug: object with numeric key in v2.0-a095-9f724c5 Topic is solved

Code: Select all

F := {"-2146826281" : "ANYTHING"}
MsgBox F["-2146826281"]	; SHOW EMPTY STRING
MsgBox F[-2146826281]	; Cause AHK CRASH
by aseiot
28 Apr 2018, 00:28
Forum: AutoHotkey v2 Development
Topic: v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved
Replies: 9
Views: 752

Re: v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved

lexikos wrote:The alpha branch was behind v2.0-a094 by one commit; the one that fixes OTB, 29bbc64, the same one that the v2.0-a094 tag refers to. If you checked out alpha before this post, it was not actually v2.0-a094.
Many thanks! It is ok now :D
by aseiot
27 Apr 2018, 19:59
Forum: AutoHotkey v2 Development
Topic: v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved
Replies: 9
Views: 752

Re: v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved

As far as I remember I had issues with Visual Studio 2017 building AutoHotkey due to the absence of a specific build tool. how did you manage to work around that issue - or does Visual Studio have that in the latest build? Can not remember the detail, but VS2007 offers an option to download require...
by aseiot
27 Apr 2018, 08:23
Forum: AutoHotkey v2 Development
Topic: v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved
Replies: 9
Views: 752

Re: [Solved] v2.0-a094 Missing "}" Error! Topic is solved

Helgef wrote:
How to Compile wrote: AutoHotkey is developed with Microsoft Visual Studio Community 2015 Express
Cheers
I know that. I had build with VS2017 for awhile, it works until now!

PS: following statement works for me.

Code: Select all

f()
{
}
So, I initially misconceive changing for syntax!
by aseiot
27 Apr 2018, 07:56
Forum: AutoHotkey v2 Development
Topic: v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved
Replies: 9
Views: 752

Re: [Solved] v2.0-a094 Missing "}" Error! Topic is solved

Try to build from the source with VS2017(SDK 8.1 and Visual Studio 2017 v141). Unfortunately, the build still not work for me! After revert following commit, it works again!
Improved error reporting for unbalanced ()/[]/{}.2cd2354
Please help!
by aseiot
27 Apr 2018, 07:31
Forum: AutoHotkey v2 Development
Topic: v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved
Replies: 9
Views: 752

Re: v2.0-a094 Missing "}" Error! Topic is solved

Flipeador wrote:Works for me... 2.0-a094-29bbc64
Yes, you are right! Seems problem of my custom build. I will try to figure it out. Thanks!
by aseiot
27 Apr 2018, 07:12
Forum: AutoHotkey v2 Development
Topic: v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved
Replies: 9
Views: 752

v2.0-a094 Missing "}" Error! when build with VS2017 Topic is solved

v2.0-a094 not supporting define function as follow

Code: Select all

f(){
}
Wish to keep such syntax legally! :(

Go to advanced search