all repos — min @ ccac3412286d146c91002fd65b199190e2fde1d6

A small but practical concatenative programming language.

fixes
h3rald h3rald@h3rald.com
Sun, 16 Jun 2024 22:18:40 +0200
commit

ccac3412286d146c91002fd65b199190e2fde1d6

parent

5f77cc666774f93d4cec814cfd7416d40bbf71d0

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M minpkg/core/interpreter.nimminpkg/core/interpreter.nim

@@ -200,13 +200,13 @@ # Capture closures at module level

let origScope = i.scope let origParentScope = i.scope.parent let origMdlParentScope = op.mdl.scope.parent - i.scope = op.mdl.scope - i.scope.parent = origScope + i.scope.parent = op.mdl.scope + i.scope.parent.parent = origParentScope op.prc(i) i.scope = origScope i.scope.parent = origParentScope op.mdl.scope.parent = origMdlParentScope - else: + else op.prc(i) else: if op.val.kind == minQuotation: