Stay Hungry,Stay Foolish!

摘要: 背景 在一个lua文件中书写的代码, 使用的变量, 需要设置其运行环境。 目的: 1、 不破坏全局环境。 2、 限定文件所使用的环境, 作为沙箱功能。 解法 限定运行空间环境的文件: 加载上个文件的代码 (将dmenu的值,传入上个文件, 并限定只能在全局环境中读取): 阅读全文
posted @ 2017-01-26 10:57 lightsong 阅读(1396) 评论(0) 推荐(0)
摘要: 函数链 http://lua-users.org/wiki/FiltersSourcesAndSinks A chain is a function that combines the effect of two (or more) other functions, but whose interf 阅读全文
posted @ 2017-01-26 10:49 lightsong 阅读(388) 评论(0) 推荐(0)
千山鸟飞绝,万径人踪灭