Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
silentbicycle
on Feb 1, 2012
|
parent
|
context
|
favorite
| on:
Why Lua?
You can set __index on the global table's metatable. Basically: "run this hook whenever I try to access an undefined field".
setmetatable(_G, {__index=function(global_env, name) print("unknown: " .. name) end})
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: