Stay Hungry,Stay Foolish!

摘要: module 与 package.seeall http://blog.codingnow.com/2006/02/lua_51_module.html 使用 module("test") 后,下面不再看的见前面的全局环境。如果在这个模块里想调用 print 输出调试信息怎么办呢?一个简单的方法是 local print=printmodule("test") 这样 print 是一个 loc... 阅读全文
posted @ 2016-08-06 01:30 lightsong 阅读(3706) 评论(0) 推荐(0) 编辑
摘要: module 作用 module (name [, ···]) Creates a module. If there is a table in package.loaded[name], this table is the module. Otherwise, if there is a global table t with the given name, this table is the... 阅读全文
posted @ 2016-08-06 00:25 lightsong 阅读(395) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel