开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜