luasocket/test/excepttest.lua
2004-07-01 05:38:44 +00:00

7 lines
149 B
Lua

local socket = require("socket")
try = socket.newtry(function()
print("finalized!!!")
end)
try = socket.protect(try)
print(try(nil, "it works"))