self param replaced as opTerm
This commit is contained in:
+2
-2
@@ -21,9 +21,9 @@ func newVarTerm(tk *Token) *term {
|
||||
}
|
||||
|
||||
// -------- eval func
|
||||
func evalVar(ctx ExprContext, self *term) (v any, err error) {
|
||||
func evalVar(ctx ExprContext, opTerm *term) (v any, err error) {
|
||||
var exists bool
|
||||
name := self.source()
|
||||
name := opTerm.source()
|
||||
if v, exists = GetVar(ctx, name); !exists {
|
||||
if info, exists, _ := GetFuncInfo(ctx, name); exists {
|
||||
v = info.Functor()
|
||||
|
||||
Reference in New Issue
Block a user