Changed SetValue() as SetVar() and GetValue() as GetVar()

This commit is contained in:
2024-04-03 06:29:57 +02:00
parent 6c02b02d4a
commit 088e347c95
11 changed files with 38 additions and 38 deletions
+2 -2
View File
@@ -65,9 +65,9 @@ func (functor *funcDefFunctor) Invoke(parentCtx exprContext, name string, args [
ctx := parentCtx.Clone()
for i, p := range functor.params {
if i < len(args) {
ctx.SetValue(p, args[i])
ctx.SetVar(p, args[i])
} else {
ctx.SetValue(p, nil)
ctx.SetVar(p, nil)
}
}
result, err = functor.expr.Eval(ctx, false)