Search found 211 matches

by Xgoff
Fri Nov 19, 2010 4:35 am
Forum: General
Topic: Deceptively basic Lua tables question
Replies: 15
Views: 3548

Re: Deceptively basic Lua tables question

A nice solution would be having nil[whatever] return nil silently, without raising an error. I believe in Squirrel they do just that. I don't think it can be done in Lua. debug.setmetatable(nil, { __index = { } }) print((nil).test) --> nil probably won't make some people very happy if they see it t...