From 9307473d086cc7d736562015d41179da9ede3f2d Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Tue, 4 Jun 2024 11:03:24 +0200 Subject: [PATCH] Call() implementation can invoke varaibles holding functors --- simple-store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {