all repos — min @ ddd857863ca4fd4e73719464071d83b17df09c7a

A small but practical concatenative programming language.

Removed invoke symbol.
h3rald h3rald@h3rald.com
Sat, 26 Oct 2024 20:26:10 +0200
commit

ddd857863ca4fd4e73719464071d83b17df09c7a

parent

5e5fb047fe9b66dcee858e83ae580688c99b6db9

3 files changed, 5 insertions(+), 20 deletions(-)

jump to
M min.ymlmin.yml

@@ -1,5 +1,5 @@

author: Fabio Cevasco description: A small but practical concatenative programming language and shell. -id: 164288837 +id: 182094059 name: min version: 0.46.0
M minpkg/lib/min_global.nimminpkg/lib/min_global.nim

@@ -788,25 +788,6 @@ i.push sym.val

else: raiseInvalid("Unable to display source: '$1' is an operator." % str) - def.symbol("invoke") do (i: In): - let vals = i.expect("'sym") - let s = vals[0].getString - let parts = s.split("/") - if parts.len < 2: - raiseInvalid("Dictionary identifier not specified") - i.pushSym parts[0] - for p in 0..parts.len-2: - let vals = i.expect("dict") - let mdl = vals[0] - let symId = parts[p+1] - let origScope = i.scope - i.scope = mdl.scope - if not i.scope.parent.isNil: - i.scope.parent = origScope - let sym = i.scope.getSymbol(symId) - i.apply(sym) - i.scope = origScope - def.symbol("raise") do (i: In): let vals = i.expect("dict") let err = vals[0]
M next-release.mdnext-release.md

@@ -1,3 +1,7 @@

+### BREAKING CHANGES + +* Actually removed the `invoke` symbol that was supposed to be removed in v0.44.0 but didn't. + ### Fixes and Improvements * Implemented `define-sigil` (was documented but not actually implemented).