I'm new to programming with classes in AHK, but I'm assuming we can normally use member variables as parameters? Am I doing something wrong somewhere? I searched a great deal and could find nothing about this, so I'm hoping I did something incorrectly somewhere. But I've double checked everything.
Is this just because this function captures its args by reference, or perhaps something specific to AHK V2?
Any help is appreciated!
Main part of the vector2 class:
Code: Select all
class XVEC2
{
; SETUP
__New(x:=0,y:=0)
{
this.X := x
this.Y := y
}
}