lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

In-Reply-To: <>
X-Organization: Home
User-Agent: Messenger-Pro/1.00c (MsgServe/1.00a) (RISC-OS/5.10) POPstar/2.05
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

In message <> you wrote:

> On Thursday 16 February 2006 3:29 pm, Chris wrote:
> > What is the proper way to do real error handling in Lua?
> almost the only one who has done something constructive in this area
> is Diego Nehab.  read this:
> this code is included in his luasocket package; but i think it
> shouldn't be too hard to rewrite as a separate module

I use it in RiscLua (

Incidentally, errors in RISC OS are always returned as a
struct { int errno; char errmesg[256]; }, with error numbers
assigned in blocks to registered users, with the base of the block
related to similar registrations for software interrupt codes.
The OS itself can then relate the error number to the module
title, because that is registered too.
Gavin Wraith (
Home page: