Call() implementation can invoke varaibles holding functors
This commit is contained in:
parent
10a596a4cd
commit
9307473d08
@ -172,7 +172,8 @@ func (ctx *SimpleStore) EnumFuncs(acceptor func(name string) (accept bool)) (fun
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ctx *SimpleStore) Call(name string, args []any) (result any, err error) {
|
func (ctx *SimpleStore) Call(name string, args []any) (result any, err error) {
|
||||||
if info, exists := ctx.funcStore[name]; exists {
|
if info, exists := GetLocalFuncInfo(ctx, name); exists {
|
||||||
|
// if info, exists := ctx.funcStore[name]; exists {
|
||||||
functor := info.Functor()
|
functor := info.Functor()
|
||||||
result, err = functor.Invoke(ctx, name, args)
|
result, err = functor.Invoke(ctx, name, args)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user