all repos — min @ 3666dc9a9d15735a41e129853384c064ecaf057d

A small but practical concatenative programming language.

Implementing namespaced symbols
h3rald h3rald@h3rald.com
Sat, 25 May 2024 20:05:33 +0000
commit

3666dc9a9d15735a41e129853384c064ecaf057d

parent

c78094f69b44d0deb6d8b1b800fdd45e380054e8

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

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

@@ -195,7 +195,7 @@ return v

proc apply*(i: In, op: MinOperator, sym = "") {.effectsOf: op.} = if op.kind == minProcOp: - if not op.mdl.scope.isNil: + if not op.mdl.isNil and not op.mdl.scope.isNil: let origScope = i.scope let origMdlParentScope = op.mdl.scope.parent i.scope = op.mdl.scope