ExprContext.SetVar() no longer requires the explicit specification of the type of number

This commit is contained in:
2024-04-09 07:12:22 +02:00
parent bd323efedf
commit 8f396a35de
8 changed files with 42 additions and 13 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func evalAssign(ctx ExprContext, self *term) (v any, err error) {
if functor, ok := v.(Functor); ok {
ctx.RegisterFunc(leftTerm.source(), functor, 0, -1)
} else {
ctx.SetVar(leftTerm.tk.source, v)
ctx.setVar(leftTerm.tk.source, v)
}
}
return