Call() implementation can invoke varaibles holding functors

This commit is contained in:
Celestino Amoroso 2024-06-04 11:03:24 +02:00
parent 10a596a4cd
commit 9307473d08

View File

@ -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 {