Fixes.
h3rald h3rald@h3rald.com
Sun, 16 Jun 2024 20:22:51 +0000
2 files changed,
3 insertions(+),
3 deletions(-)
M
minpkg/core/interpreter.nim
→
minpkg/core/interpreter.nim
@@ -206,7 +206,7 @@ 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:
M
minpkg/core/scope.nim
→
minpkg/core/scope.nim
@@ -56,7 +56,7 @@ debug "hasSymbol: $#" % [key]
if scope.isNil: return false else: - debug "hasSymbol - scope symbols: $#" % [$scope.symbols.keys.toSeq] + #debug "hasSymbol - scope symbols: $#" % [$scope.symbols.keys.toSeq] if scope.symbols.hasKey(key): debug "hasSymbol - found $#" % [key] return true@@ -126,7 +126,7 @@ override = false, define = false): bool {.discardable.} =
result = false # check if a symbol already exists in current scope debug "setSymbol: $#" % [key] - debug "setSymbol: scope symbols: $#" % [$scope.symbols.keys.toSeq] + #debug "setSymbol: scope symbols: $#" % [$scope.symbols.keys.toSeq] if not scope.isNil and scope.symbols.hasKey(key): if not override and scope.symbols[key].sealed: raiseInvalid("Symbol '$1' is sealed ." % key)