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
]]

安全第一

  台灣 2025年 前3季行人   死亡數   比去年同期   增4%   . 為宣傳政蹟, 搏版面, 過度強調  行人帝王條款  , 不知 很多人 都只聽  權利  , 而 忽略  馬路如虎口  ,  身體是自己的  ,  不要以身犯險 .