daurnimator
October 2017
Other projects tend to have one (or two) missing pieces:
Lua is quite close to Javascript in terms of language features:
-DLUA_INT_TYPE=LUA_INT_INT
Symbol
keys
WeakMap
s only allow objects (and functions) as keys (excluding null
)WeakMap
s are not iterablenext
next
Tables are implemented as not just a key => value map, but also as a doubly linked list. When you remove an item from a table we:
next
To iterate (next
), we:
Map
-like methods
.get
, .set
, .has
, etc..invoke
if you want variable return: returned as Array
lua_atnativeerror
lua_toproxy
and lua_isproxy
)https://fengari.io/
__gc
metamethod__mode
is ignored)collectgarbage
and lua_gc
mostly unimplementableio
lib
os.remove
, os.rename
, os.tmpname
, os.execute
__gc