Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Lua also allows floating point indices. In fact, any value can be an index into a table. That means any number, string, True/False, function reference, thread (coroutine) reference, table reference, "userdata" reference (usually a pointer to a C object), or nil can be an index.


Correction, any value except nil can be an index into a table. https://www.lua.org/manual/5.3/manual.html#2.1




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: