Skip to content

v0.13.5

Latest
Compare
Choose a tag to compare
@CoffeeTableEspresso CoffeeTableEspresso released this 01 Apr 02:50
ef0f3e7

New Features:

  • Added try function to allow recovery from errors.
  • Add package.searchpath, to allow us to see what files we attempt to open with require.
  • Add list->shuffle, to allow randomly reordering a list.
  • Add list->has, str->has, and set->has for checking membership.

Bug Fixes:

  • Slicing with invalid range now correctly shows error message instead of crashing.
  • Fixed bug with str->replace(str, str, int) incorrectly not doing enough replacements.
  • table->copy now correctly copies the metatable.

C API:

  • Add YASLX_checknoptstrz, for checking for str/undef and filling in a default value.
  • Deprecate YASL_popcstr, YASL_peekuserdata, and YASL_popuserdata.

Internal Changes:

  • Most strs are now interned.