AHK-v2-script-converter icon indicating copy to clipboard operation
AHK-v2-script-converter copied to clipboard

Issues with function calls that need ByRef -> & and multi-statement

Open Banaanae opened this issue 4 months ago • 0 comments

V1:

MyFunc(ByRef a, ByRef b) {}

MyFunc(a, b)
MyFunc(a, b), a = b ; Stripped
MyFunc(a, b) ; Stripped

V2 (Converted):

MyFunc(&a, &b) {}

MyFunc(&a, &b)
MyFunc(&a, &b)
MyFunc(&a, &b)

V2 (Expected):

MyFunc(&a, &b) {}

MyFunc(&a, &b)
MyFunc(&a, &b), a = b ; Stripped
MyFunc(&a, &b) ; Stripped

Adding below lines causes more strange behaviour (both commented and un)

; MyFunc(a, b), Ord(1)
; MyFunc(a, b), MyFunc(a, b)

Banaanae avatar Oct 03 '24 07:10 Banaanae