[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: LuaSocket Finalized Exceptions: protect won't work with assert
- From: William Trenker <wtrenker@...>
- Date: Mon, 12 Sep 2005 22:35:26 -0400
The LuaSocket docs indicate that socket.protect can be used to
generate a safe function from another function that throws exceptions.
The docs tell me I can protect any function that "is a function that
calls try (or assert, or error) to throw exceptions". I'm missing
something because I can't get it to work with assert. I'm using Lua
prints, as expected:
results in an "assertion failed" exception.
What have I missed here?