[a132] string autoconcat + IsSet() parsing issue Topic is solved

Report problems with documented functionality
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

[a132] string autoconcat + IsSet() parsing issue

Post by swagfag » 24 Apr 2021, 18:53

Code: Select all

#Requires AutoHotkey v2.0-a132-8673ba2f

var := 123

f() {
	MsgBox('set?' IsSet(var)) ; loadtime: syntax error, this is unexpected
	
	; MsgBox(IsSet(var) 'set?') ; this works fine
	; MsgBox('set?' . IsSet(var)) ; this works fine
	; MsgBox('set?' IsSetRef(&var)) ; this works fine
}

f()
there is some problem with parsing the uncommented line above, specifically when IsSet() is autoconcatenated with a preceeding string/anything


Post Reply

Return to “Bug Reports”