diff --git a/simple-store.go b/simple-store.go index 6d8cd0b..7ad1e18 100644 --- a/simple-store.go +++ b/simple-store.go @@ -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) { - if info, exists := ctx.funcStore[name]; exists { + if info, exists := GetLocalFuncInfo(ctx, name); exists { + // if info, exists := ctx.funcStore[name]; exists { functor := info.Functor() result, err = functor.Invoke(ctx, name, args) } else {