luasocket/test/excepttest.lua

7 lines
149 B
Lua
Raw Permalink Normal View History

2004-07-01 07:38:44 +02:00
local socket = require("socket")
try = socket.newtry(function()
print("finalized!!!")
end)
try = socket.protect(try)
print(try(nil, "it works"))