lua 元表是个啥?
摘要:
1 function readOnly(t) 2 local proxy = {} 3 local mt = { 4 __index = t, 5 __newindex = function(t,k,v) 6 error("a... 阅读全文
posted @ 2015-02-10 16:25 EarlyBird 阅读(3541) 评论(0) 推荐(1) 编辑
posted @ 2015-02-10 16:25 EarlyBird 阅读(3541) 评论(0) 推荐(1) 编辑