Improvements.
h3rald h3rald@h3rald.com
Mon, 19 Apr 2021 20:07:53 +0200
10 files changed,
17 insertions(+),
17 deletions(-)
M
min.nimble
→
min.nimble
@@ -13,7 +13,7 @@ installDirs = @["minpkg"]
# Dependencies -requires "nim >= 1.4.0" +requires "nim >= 1.4.6, zippy >= 0.5.6" before install: exec "nimble install -y nifty"
M
minpkg/core/interpreter.nim
→
minpkg/core/interpreter.nim
@@ -178,10 +178,8 @@
proc copyDict*(i: In, val: MinValue): MinValue {.gcsafe.}= # Assuming val is a dictionary var v = newDict(i.scope) - for item in val.scope.symbols.pairs: - v.scope.symbols[item.key] = item.val - for item in val.scope.sigils.pairs: - v.scope.sigils[item.key] = item.val + v.scope.symbols = val.scope.symbols + v.scope.sigils = val.scope.sigils if val.objType != "": v.objType = val.objType if not val.obj.isNil:
M
minpkg/core/parser.nim
→
minpkg/core/parser.nim
@@ -779,6 +779,7 @@ raiseUndefined(p, "Undefined value: '"&p.a&"'")
proc print*(a: MinValue) = stdout.write($$a) + stdout.flushFile() # Predicates
M
minpkg/lib/min_io.nim
→
minpkg/lib/min_io.nim
@@ -115,6 +115,7 @@ elif answer.contains(re"(?i)^no?$"):
return false else: stdout.write "Invalid answer. Please enter 'yes' or 'no': " + stdout.flushFile() return confirm() i.push confirm().newVal@@ -126,6 +127,7 @@ var q = vals[1]
if q.qVal.len <= 0: raiseInvalid("No choices to display") stdout.writeLine(s.getString) + stdout.flushFile() proc choose(): int = var c = 0 for item in q.qVal:
M
next-release.md
→
next-release.md
@@ -1,11 +1,6 @@
-### BREAKING CHANGES +### Fixes and Improvements -* Removed **lite?** and **mini?** symbols, as they are no longer necessary. +* Fixed problem with **print** symbol (Linux only if compiled with musl) +* Minor performance improvements on dictionary management +* Upgraded OpenSSL to v1.1.1k -### New Features - -* Now using [zippy](https://github.com/guzba/zippy) for the **zip** and **unzip** symbols. - -### Fixes and Improvements - -* Removed conditional compilations related to mini and lite variants as they are no longer needed.
M
site/contents/reference-logic.md
→
site/contents/reference-logic.md
@@ -38,6 +38,10 @@
{#op||!=||{{a1}} {{a2}}||{{b}}|| Returns {{t}} if {{a1}} is not equal to {{a2}}, {{f}} otherwise. #} +{#alias||||||expect-any#} + +{#alias||&&||expect-all#} + {#op||and||{{b1}} {{b2}}||{{b3}}|| Returns {{t}} if {{b1}} is equal to {{b2}}, {{f}} otherwise.#}
M
site/settings.json
→
site/settings.json
@@ -6,5 +6,5 @@ "rules": "rules.min",
"temp": "temp", "templates": "templates", "title": "min language", - "version": "0.35.0" + "version": "0.35.1" }