luasocket/test/excepttest.lua

7 lines
149 B
Lua
Raw 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"))