Doesn't Lua have something comparable to Ruby's method_missing?
I seem to recall Lu开发者_如何学运维a has something similar to Ruby's method_missing. Or am I remembering incorrectly?
The __index
and __newindex
of a table's metatable can be used to the same effect as Ruby's method_missing
.
精彩评论