Is it possible to pass a setter function as a function value?
|
|
Class blah Property x:Int() Return _x Setter(x:Int) _x = x End Method WoopWoop(x:Int) End Method Field _x End Class Local test = New Blah() Local func1:Void(Int) = test.WoopWoop ' This is fine Local func2:Void(Int) = test.x ' Oops, test.x is Int, not Void(Int) |
I could use a Method SetX(Int) instead of a property and setter… but I like properties and setters…
Is it possible to reference the setter method function value (clearly I don’t know its formal name, does it even have one)?