开发者

Doesn't Lua have something comparable to Ruby's method_missing?

开发者 https://www.devze.com 2023-04-12 03:11 出处:网络
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

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

精彩评论

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

关注公众号