all repos — min @ b423389be2c698a98180f8d9240b324b5dc131ef

A small but practical concatenative programming language.

Fixes.
h3rald h3rald@h3rald.com
Thu, 31 Dec 2020 13:30:23 +0100
commit

b423389be2c698a98180f8d9240b324b5dc131ef

parent

2d03b5b0145caca6df21b90da66cf46f9d6149b0

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

jump to
M lib/min_lang.nimlib/min_lang.nim

@@ -89,13 +89,12 @@ if not file.endsWith(".min"):

file = file & ".min" info("[load] File: ", file) let f = simplifyPath(i.filename, file) - var i2 = i.copy(f) if MINCOMPILED and COMPILEDMINFILES.hasKey(f): - COMPILEDMINFILES[f](i2) + COMPILEDMINFILES[f](i) else: if not f.fileExists: raiseInvalid("File '$1' does not exist." % file) - i2.load f + i.load f def.symbol("require") do (i: In): let vals = i.expect("'sym")