From e275bf9ff105bbb3e12fcf15e3ab755ed0cd26cf Mon Sep 17 00:00:00 2001 From: glenda Date: Sun, 18 Sep 2022 19:58:41 +0000 Subject: Chain the symbol tables, not the dfn frames --- functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions.c') diff --git a/functions.c b/functions.c index 30a7dd1..0dd898d 100644 --- a/functions.c +++ b/functions.c @@ -233,7 +233,7 @@ rundfn(Rune *code, Datum *lefto, Datum *righto, Array *left, Array *right) Function dfn; dfn.type = FunctypeDfn; dfn.dfn = code; - dfn.scope = getcurrentdfn(); + dfn.scope = getcurrentsymtab(); return runfunc(dfn, left, right); }else if(lefto != nil){ Function dop; @@ -243,7 +243,7 @@ rundfn(Rune *code, Datum *lefto, Datum *righto, Array *left, Array *right) dop.operator.right = righto; dop.operator.dyadic = righto != nil; dop.operator.dop = code; - dop.scope = getcurrentdfn(); + dop.scope = getcurrentsymtab(); return runfunc(dop, left, right); }else{ throwerror(L"Malformed call to rundfn", ENotImplemented); -- cgit v1.2.3