New Features:
- Added
try
function to allow recovery from errors. - Add
package.searchpath
, to allow us to see what files we attempt to open withrequire
. - Add
list->shuffle
, to allow randomly reordering alist
. - Add
list->has
,str->has
, andset->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 forstr
/undef
and filling in a default value. - Deprecate
YASL_popcstr
,YASL_peekuserdata
, andYASL_popuserdata
.
Internal Changes:
- Most
str
s are now interned.