lua-scope:资源获取是Lua的初始化实现

时间:2021-06-01 11:23:51
【文件属性】:
文件名称:lua-scope:资源获取是Lua的初始化实现
文件大小:19KB
文件格式:ZIP
更新时间:2021-06-01 11:23:51
Lua lua 作用域 lua-scope是Lua 的简单资源获取即初始化实现。 概要 local scope = require " scope " scope ( function ( guard ) local f = assert ( io.open ( " out " , " w " )) -- always executed at the end of the function guard: on_exit ( function () f: close () end ) -- might die or might not do_more_stuff (f) local f2 = assert ( io.open ( " out " , " w " )) -- some other protector guard
【文件预览】:
lua-scope-master
----.gitignore(7B)
----test.sh(101B)
----t()
--------usage.t(2KB)
----src()
--------scope()
----.travis.yml(120B)
----LICENSE(9KB)
----doc()
--------us()
----README.md(699B)
----rockspecs()
--------luascope-0.01-1.rockspec(577B)

网友评论