Code: Select all
this.f.Call(this.params.spread())
Code: Select all
this.f.Call(this.params[1], this.params[2], this.params[3])
Code: Select all
class F_obj {
f := ""
params := ""
__New(f, params*) {
this.f := f
this.params := params
}
Call() {
; this works but it's cumbersome
; this.f.Call(this.params[1], this.params[2], this.params[3])
; this doesn't work
this.f.Call(this.params)
}
}
F1 := F_obj(foo, "a", "b", "c")
F1()
foo(p1,p2,p3) {
msgbox p1 p2 p3
}