Fixes.
h3rald h3rald@h3rald.com
Sun, 16 Jun 2024 17:11:40 +0200
2 files changed,
4 insertions(+),
1 deletions(-)
M
minpkg/core/interpreter.nim
→
minpkg/core/interpreter.nim
@@ -198,9 +198,12 @@ if op.kind == minProcOp:
if not op.mdl.isNil and not op.mdl.scope.isNil: # Capture closures at module level let origScope = i.scope + let origParentScope = i.scope.parent i.scope = op.mdl.scope + i.scope.parent = origScope op.prc(i) i.scope = origScope + i.scope.parent = origParentScope else: op.prc(i) else:
M
minpkg/core/scope.nim
→
minpkg/core/scope.nim
@@ -53,10 +53,10 @@ string]): bool
proc hasSymbol*(scope: ref MinScope, key: string): bool = debug "hasSymbol: $#" % [key] - if scope.isNil: return false else: + debug "hasSymbol - scope symbols: $#" % [$scope.symbols.keys.toSeq] if scope.symbols.hasKey(key): debug "hasSymbol - found $#" % [key] return true