lua-users home
lua-l archive

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


> >The main change is that lua.c checks the error object
> >and, if it is nil, it does not show anything. (See 'report' in lua.c.)
> 
> Hmmm... this is a bit disconcerting. What's the rational behind this 
> behavior? After all, an error is an error, message or not.

The rationale is to allow errors without messages :) An error is an error,
and a message is a message. If the error does not have a message, it
probably does not want one.

-- Roberto