2014年6月24日 星期二
-- LUA string.dump and loadstring usage
-- [[
function func_1()
print("I am func 1")
end
function func_2()
print("I am func 2")
end
-- [[
func_s = {}
func_s[1] = string.dump(func_1)
func_s[2] = string.dump(func_2)
-- ]]
print("output:")
for i=1,2 do
local exe = loadstring( func_s[i] )
exe()
end
stop()
-- ]]
--[[
output:
I am func 1
I am func 2
]]
訂閱:
文章 (Atom)
ubuntu kernel 5.4 pop noise (躁音) // 用 這條命令 可 暫時 關閉音效 省電模式, 但 重開機, 問題 仍在. $ sudo echo 0 > /sys/module/snd_hda_intel/parameters/power_s...
-
火箭隊 世堅 說: 中選會 最熱心了 。 是丫 ~ 東廠 ,西廠 為了 它們的 主子 ,最熱心了 。 連 睡覺 都在 想方設法 。
-
<style> ..... @media print { /* for page <div> */ .new-page-section { page-break-after: always; } } </style...
-
In Gvim ,How to setup default font and font-size In .gvimrc , You must add a ( \ ) back-slash to tell gvim , 16 is the font-size . Ot...