all repos — min @ 5aa49966814eb8924c8d313ac580e9732894a712

A small but practical concatenative programming language.

Fixed generics in type unions.
h3rald h3rald@h3rald.com
Mon, 18 Jan 2021 20:55:50 +0100
commit

5aa49966814eb8924c8d313ac580e9732894a712

parent

094eca63048393b6d80091192c640746b9433a21

6 files changed, 8 insertions(+), 17 deletions(-)

jump to
M .gitignore.gitignore

@@ -19,3 +19,4 @@ response.json

run run.nim dstore.json +test.min
M min.nimsmin.nims

@@ -1,11 +1,9 @@

-# https", //blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/ +# https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/ -# https", //gist.github.com/Drakulix/9881160 switch("amd64.windows.gcc.path", "/usr/local/bin") switch("amd64.windows.gcc.exe", "x86_64-w64-mingw32-gcc") switch("amd64.windows.gcc.linkerexe", "x86_64-w64-mingw32-gcc") -# http", //crossgcc.rts-software.org/doku.php?id=compiling_for_linux switch("amd64.linux.gcc.path", "/usr/local/bin") switch("amd64.linux.gcc.exe", "x86_64-linux-musl-gcc") switch("amd64.linux.gcc.linkerexe", "x86_64-linux-musl-gcc")
M min.ymlmin.yml

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

author: Fabio Cevasco description: A tiny concatenative programming language and shell. -id: 36258339 +id: 36559365 name: min -version: 0.29.0 +version: 0.29.1
M minpkg/core/utils.nimminpkg/core/utils.nim

@@ -241,7 +241,7 @@ return true

if i.scope.hasSymbol("type:$#" % s): return true for tt in s.split("|"): - if not ts.contains(tt) or tt.startsWith("dict:"): + if not ts.contains(tt) and not tt.startsWith("dict:") and not i.scope.hasSymbol("type:$#" % tt): return false return true
M next-release.mdnext-release.md

@@ -1,9 +1,1 @@

-* Added **dsinit!** symbol. -* Added **sealed?** and **sealed-sigil?** symbols. -+ **floor** and **ceil** now correctly return an integer again. -* Added **abs** symbol. -* Now executing min shell if no file is specified (unless input is piped in), without the need of specifying **-i**. -* Implemented the possibility to define type classes using the **typeclass** symbol. -* Added **stringlike?** symbol. -* Implemented support for generics in operator signatures -* Now listing what items are polluting the stack. +* Fixes #98.
M site/settings.jsonsite/settings.json

@@ -6,5 +6,5 @@ "rules": "rules.min",

"temp": "temp", "templates": "templates", "title": "min language", - "version": "0.29.0" -} + "version": "0.29.1" +}