lua5.1中的setfenv使用
摘要:
setenv是在lua5.1中有的改变函数作用域的函数。 用法是setenv(func or number,tbl),第一个参数可以是数字也可以是函数,数字1表示当前的作用域,2表示上一层的作用域,特殊情况0,setfenv changes the environment of the runnin 阅读全文
posted @ 2014-09-15 07:14 &大飞 阅读(734) 评论(0) 推荐(1)
浙公网安备 33010602011771号