Skip to content

Variadic functions, inline declare and bugfixes.

Pre-release
Pre-release
Compare
Choose a tag to compare
@sigmasoldi3r sigmasoldi3r released this 23 Sep 13:06
· 19 commits to master since this release
  • Fixed a bug that made two embed runtimes incompatible.
    • The bug consisted of each runtime comparing types by reference with their own symbol tables, which led to one runtime seeing as "object" all the values of the other runtime.
    • Now uses a nominal system, where each type has also a __name meta field.
  • Fixed a bug that was preventing the use of (declare ...) locally inside functions and other blocks.
  • Added table/map function for mapping tables: The function works like list's map, but must return a key-value pair like [k v].
  • Added table/empty? function that tells if the table is empty or not.
  • Added table/items function which returns a list of key-value pairs.
  • Added Variadic functions! yay! The syntax is the same of Clojure: (defn a-fn [x y & z] ...) Here z is the variadic term (A list).
  • Added a very primitive run flag with -u or --run, creates a temporary file that then is run with the command lua and deleted right after.