[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: error() in 5.1
- From: roberto@... (Roberto Ierusalimschy)
- Date: Wed, 29 Mar 2006 15:12:44 -0300
> >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.